Handle Window Size

For help with general CEGUI usage:
- Questions about the usage of CEGUI and its features, if not explained in the documentation.
- Problems with the CMAKE configuration or problems occuring during the build process/compilation.
- Errors or unexpected behaviour.

Moderators: CEGUI MVP, CEGUI Team

xabila
Quite a regular
Quite a regular
Posts: 55
Joined: Tue Mar 10, 2009 09:39
Location: Bruxelles

Handle Window Size

Postby xabila » Mon Jun 01, 2009 18:56

I have designed a layout in 1024*768 and i'm using in 1280*1024.
Is it a way to auto reisze it or maybe forcing on 1280*1024 to display a 1024*768 layout?
Thanks

Right now it looks like this :

Image
and should be like this
Image

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Re: Handle Window Size

Postby scriptkid » Tue Jun 02, 2009 08:32

Hi,

Does your imageset XML file contain AutoScaled="true"?

You could also try playing with the 'setNativeResolution' method, which both ImageSets and Fonts support. That method updates the internal aspect ratio scaling IIRC.

HTH.
Check out my released snake game using Cegui!

xabila
Quite a regular
Quite a regular
Posts: 55
Joined: Tue Mar 10, 2009 09:39
Location: Bruxelles

Re: Handle Window Size

Postby xabila » Tue Jun 02, 2009 14:23

So no i don't have the AutoScaled=true, i tried it but nothing change.
So i'm gonna try , the setNativeResolution

Thanks


Return to “Help”

Who is online

Users browsing this forum: No registered users and 5 guests