This object is in archive! 

[Public test] Corner LCD SurfaceSize fixed but position wrong

Sascha Makela shared this bug 4 years ago
Solved

The SurfaceSize for Corner LCD is finally reporting correctly 512 x 95, but positioning doesn't make sense. It seems like it thinks it's 2048 pixels wide.

Replies (3)

photo
1

Is no one else seeing this issue?

photo
1

Hi,

Corner LCDs have correct aspect ratio and using full texture. We fixed UV channels so it's finally behaving like the rest of LCDs. There are some side effect, which players have to fix in their creations. You will have to make text bigger (if you used it before with text) or use preserve aspect ratio on the LCD (in control panel).

photo
1

Perhaps I wasn't clear in my post, but I'm not talking about when Content is set to "Text and Images". I mean when Content is set to "Script". While most of the build in scripts seem to work ok, using it with my own script results in weird behavior.

For example, the following code results in the attached screenshot (not full code):

sprite = MySprite.CreateText("Size: " + screen.Viewport.Size.ToString(), "White", normalText, 2f, TextAlignment.CENTER);                    
drawFrame.Add(sprite);

sprite = MySprite.CreateText("Postion: (X:1700 Y:256)", "White", Color.White, 2f, TextAlignment.CENTER);
sprite.Position = new Vector2(1700, 256);                   
drawFrame.Add(sprite);

0e45658642498304cdc7dba80b444d18


My guess is that i need to multiply everything with 4, including font size, in order to get desired results,

I hope this info is clearer and more helpful :)

photo
photo
1

OK, so I had time to test it and indeed multiplying all values (size and position) by 4 does make it look like before (see bellow). But my question is whether this is by design or not?


3702ca3c43b82c9904077967ac96d0c0980a43c62fed482a570e9fe9cf4cb601

photo
1

My bad. I forgot that I hade set fixed size to Corner LCDs in my code. Here is the real size (and position):

ef8d902308eeb071d71851d212992b3f

So the current Corner LCD size is 2048 x 292. I guess this is intended.

photo
Leave a Comment
 
Attach a file