Taking aspect ratio into account

Discuss any general programming issues here
Post Reply
User avatar
emeck
Posts: 114
Joined: Fri Apr 03, 2015 3:17 pm

Taking aspect ratio into account

Post by emeck »

Hello,

can someone point me to resources about how to deal when programming for different aspect ratios? I have similar ratio in my PowerBook and RPi displays but I also have a couple of 4:3 displays. I would like to learn what techniques I can use to target different aspect ratios.

Thanks!
PowerBook 5.2 MorphOS 3.15
PowerBook 5.8 MorphOS 3.15
Amiga 1200 BPPC/BVision AOS4.1 FE

User avatar
airsoftsoftwair
Posts: 4767
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Taking aspect ratio into account

Post by airsoftsoftwair »

You could use the „FullScreenScale“ mode combined with the „KeepProportions“ tag. Then your script will automatically adapt to the best size for the current resolution while maintaining the aspect ratio.

User avatar
emeck
Posts: 114
Joined: Fri Apr 03, 2015 3:17 pm

Re: Taking aspect ratio into account

Post by emeck »

airsoftsoftwair wrote:
Sat Oct 16, 2021 11:57 pm
You could use the „FullScreenScale“ mode combined with the „KeepProportions“ tag. Then your script will automatically adapt to the best size for the current resolution while maintaining the aspect ratio.
Thanks. I tried with "FullScreen" mode and it looks very good, no distortions. Using "KeepProportions“ tag doesn't seem to affect "FullScreen" mode.

So, it works. Thanks again Andreas.
PowerBook 5.2 MorphOS 3.15
PowerBook 5.8 MorphOS 3.15
Amiga 1200 BPPC/BVision AOS4.1 FE

Post Reply