TotalCross / totalcross

TotalCross is a Software Development Kit that helps cross platform application development. Currently supported platforms are: Windows, Wince, Android, iOS, Linux and Linux ARM for embedded systems.
https://www.totalcross.com
GNU Lesser General Public License v2.1
220 stars 40 forks source link

Simulator resolution doesn't change the screen size past some resolution #198

Closed VicMisael closed 3 years ago

VicMisael commented 4 years ago

Issue Title

Simulator resolution doesn't change the screen size past some resolution.

Describe the bug

Setting a resolution at the simulator, if this resolution is great enough, the screensize doesn't grow bigger, it seems to be relative to the resolution of the host system,as seem in the screenshots below

To Reproduce

Just set the main resolution of the host machine or greater

TotalCrossApplication.run(
            TCSample.class, "/r", "<PLACE YOUR KEY>", "/scr", "iphone");

Expected behavior

The screen resolution should scale with set resolution at the code above

Screenshots or videos

all screenshots were taken using a 1366x768 screen

Using 1366x768

TotalCrossApplication.run(
            TCSample.class, "/r", "<PLACE YOUR KEY>", "/scr", "1366x768");

image

Using 1080p

TotalCrossApplication.run(
            TCSample.class, "/r", "<PLACE YOUR KEY>", "/scr", "1920x1080");

image

Using 1440p

TotalCrossApplication.run(
            TCSample.class, "/r", "<PLACE YOUR KEY>", "/scr", "2560x1440");

image

Devices:

-Device:Simulator -JDK:Zulu

Additional Context

Related to #197

VicMisael commented 3 years ago

It's important to note that, this issue is present running with or without fullscreen mode

teras commented 3 years ago

When we provide the parameter /scale 1 it works as expected. This is due to some optimizations for bigger screens, not to exceed a specific ratio, and to scale instead. Needs some more feedback whether this should be the expected default behavior.

VicMisael commented 3 years ago

This issue is fixed by using ("/scr","1920x1080","/scale 1") @brunoamuniz thinks that it should be closed, so I'll be closing it