CEGUI and widescreen
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 3
- Joined: Fri Aug 20, 2010 06:41
CEGUI and widescreen
When we changed our game from 4:3 to 16:10, CEGUI windows didn't only become larger, but also became wider. We hope that windows' aspect ratio can be locked. How to lock windows' aspact ratio in CEGUI?
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: CEGUI and widescreen
The stretch you get is due to the use of relative / scale co-ordinates in root level windows and also the effect of the auto-scaling system. The first is alleviated by using pixel / offset values only in the root windows, and the second issue requires you to iterate over all fonts and imagesets and set the native resolution on those to something appropriate for the new aspect (or you could just disable auto-scaling for all imagesets and fonts, though that's not always desirable).
A cleaner solution may come with the 0.8.0 release.
CE.
A cleaner solution may come with the 0.8.0 release.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 1 guest