Page 1 of 1

Ratio 4:3 and 16:10 (16:9)

Posted: Fri Nov 27, 2009 09:18
by djphilipe
Hi,
my application is designed for resolution 1024x768 (ratio 4:3),Imagesets etc. But I have bought a new monitor with resolution 1680x1050 (16:10). And if I run my application the GUI is deformed(non-uniform stretched).

Original 1024x768:
Image

In 1680x1050:
Image

That images are stretched it's OK. But they ratio is destroyed.

How are the ways of repair this problem? (so that I mustn't create a new imagesets)

Thanks
Filip

Re: Ratio 4:3 and 16:10 (16:9)

Posted: Fri Nov 27, 2009 16:41
by Jamarr
I'm a little confused here because what you are describing is the expected behavior. If you have a 4:3 image and you want to scale it up to 16:9, then you have to stretch/distort the image; 4/3 != 16/9. This is basic math.

If you want to "fit" the 4:3 image into the 16:9 area, then you have two options 1) used fixed offsets in your layout (as opposed to scaled offsets) so that regardless of ratio, your window position/sizes remain fixed or 2) force CEGUI to use a 4:3 ratio when changing the display size (in this case, set it too 1400x1050 instead of 1680); though note that your gui will not cover the entire screen...

Second, if you had done a search for Aspect Ratio you could have found the answer yourself.