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:
In 1680x1050:
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
Ratio 4:3 and 16:10 (16:9)
Moderators: CEGUI MVP, CEGUI Team
Re: Ratio 4:3 and 16:10 (16:9)
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.
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.
If somebody helps you by replying to your thread, upvote him/her as a thanks! Make sure to include your CEGUI.log and everything you tried when posting! And remember that we are not magicians!
Who is online
Users browsing this forum: No registered users and 11 guests