CEGUI and widescreen

Forum for general chit-chat or off-topic discussion.

Moderators: CEGUI MVP, CEGUI Team

niexuchina
Just popping in
Just popping in
Posts: 3
Joined: Fri Aug 20, 2010 06:41

CEGUI and widescreen

Postby niexuchina » Fri Aug 20, 2010 06:50

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?

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: CEGUI and widescreen

Postby CrazyEddie » Sun Aug 22, 2010 09:51

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.


Return to “Offtopic Discussion”

Who is online

Users browsing this forum: No registered users and 6 guests