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!
Taking aspect ratio into account
Taking aspect ratio into account
PowerBook 5.2 MorphOS 3.15
PowerBook 5.8 MorphOS 3.15
Amiga 1200 BPPC/BVision AOS4.1 FE
PowerBook 5.8 MorphOS 3.15
Amiga 1200 BPPC/BVision AOS4.1 FE
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Taking aspect ratio into account
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.
Re: Taking aspect ratio into account
Thanks. I tried with "FullScreen" mode and it looks very good, no distortions. Using "KeepProportions“ tag doesn't seem to affect "FullScreen" mode.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.
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
PowerBook 5.8 MorphOS 3.15
Amiga 1200 BPPC/BVision AOS4.1 FE
- airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: Taking aspect ratio into account
Yes, "FullScreen" will change the physical resolution of the monitor so "KeepProportions" doesn't make sense in that context. It's only needed when using a fullscreen mode that scales graphics instead of changing the monitor resolution.