I have a static image where I'm setting the size to {{1, 0}, {0.08, 0}} but the aspectmode is on shrink so it scales properly to be about a tenth of the screen size in height. I would like to get the newly calculated size in a scale rather than in a pixel offset during run time, but when I run getSize, I just get 1 for the width, not the new width calculated for the proper aspect mode (which should be something close to .08).
What is the best way to get this width value?
[SOLVED] Using AspectMode and getting actual size
Moderators: CEGUI MVP, CEGUI Team
-
- Just popping in
- Posts: 13
- Joined: Mon Aug 05, 2013 16:31
[SOLVED] Using AspectMode and getting actual size
Last edited by MikeSwartz on Fri Sep 06, 2013 15:51, edited 1 time in total.
Re: Using AspectMode and getting actual size
Hi, try Window::getPixelSize
-
- Just popping in
- Posts: 13
- Joined: Mon Aug 05, 2013 16:31
Re: Using AspectMode and getting actual size
Got it thank you very much!
Who is online
Users browsing this forum: No registered users and 6 guests