Square Screen Autoscale - Stretch or Crop?

NewKreation

Member
Licensed User
I do not have a square screen device. So, I was wondering...if I build my app with a screen size of 240x320, how will it display on a 240x240 screen size if I compile it with the autoscale option?

  1. Does the bottom get cut off?
  2. Do the graphics and input boxes stretch taller?
  3. Other?

Thanks in advance :)
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
The bottom will be cut off. Autoscale mode does the scaling based on the DPI (Dot Per Inch). Both 240x320 and 240x240 share the same DPI which is 96 (ScreenScaleX/Y will return 1). So AutoScale will not do anything.
You can detect the layout and change it automatically.
There are square screen emulators which you can download and test your program.
 
Top