Did the resolution of the Sloped LCD chang?

Hauke Sattler shared this bug 5 months ago
Need More Information

Suddenly the visible area of the Sloped LCD changed.

1.203.603 everything fits

1.204.017 screen is vertically stretched (upper and lower part outside of the screen area)

See screenshots:

Replies (3)

photo
1

Hello, Engineer!


We can confirm that there were some changes in 204 that affected Sloped LCD blocks. What is the image you're displaying? Is it from a script of some sort? Could you please check if you have "Preserve aspect ratio" enabled?


Kind Regards

Keen Software House: QA Department

photo
1

Greetings.

The image you are seeing is the output of a ingame script on a programmable block which displays various sprites.

The script or settings do not change between screenshots. (only the version of SE)

Since the it displays sprites the display Content type has to be set to 'Script'.

And this Content type doesn't offer the option 'Preserve aspect ratio'


The content type 'Text and Images' does offer 'Preserve aspect ratio' but doesn't display sprites.

photo
1

Hello, Engineer!


Could you tell us which script specifically you're using? At this time we can confirm that there were some intended changes made to the sloped LCD. If the changes affected a script, you might want to contact the creator of the script about this issue.


Kind Regards

Keen Software House: QA Department

photo
1

Hello

It was a self written script.

The issue is that the vertical resolution of the Curved LCD and the Diagonal LCD are suddenly much lower than before.

This is somewhat inconvenient when you are trying to show the same Graphic over several LCDs of the same physical height.

The vertical resolution of the Curved LCD seems to be around 300.

The vertical resolution of the Diagonal LCD seems to be around 360.

While the vertical resolution of Wide (2x1) LCD panel, normal (1x1) LCD panel and Inset LCD panel seem to be around 510.


I attached two pictures to demonstrate the problem:


void Main(string argument) {
  GridTerminalSystem.GetBlocksOfType<IMyTextSurfaceProvider>(surfaceProviders, (p => p.CustomData.Contains("LCD")));
  foreach (IMyTextSurfaceProvider provider in surfaceProviders) {
    surface = provider.GetSurface(0);
    surface.ContentType = ContentType.SCRIPT;
    surface.Script = "";
    surface.ScriptBackgroundColor = new Color(0, 0, 0);
    frame = surface.DrawFrame();
    frame.Add(new MySprite(SpriteType.TEXTURE,"SquareHollow",new Vector2(400,256),new Vector2(2000,100),Color.Red,"",TextAlignment.CENTER,0));
    frame.Dispose();
  }
}

photo
Leave a Comment
 
Attach a file