ShiVa3D
screen size and aspect ratio [SOLVED]
All about the StoneScriptscreen size and aspect ratio
by freezer » 05 Jul 2012, 16:05
i'm in the editor and i'm logging the screen size and aspect ration, but no matter how i change the display, the size and aspect is always the same...?
- freezer
- Gold Boarder

- Posts: 164
Re: screen size and aspect ratio [SOLVED]
by freezer » 05 Jul 2012, 16:23
doh,
i was sent the wrong functions (i think)...
these seem better
i was sent the wrong functions (i think)...
- Code: Select all
local nWidth, nHeight = system.getCurrentScreenResolution ( )
local aspect = system.getCurrentScreenPixelAspectRatio ( )
these seem better
- Code: Select all
local as = application.getCurrentUserViewportAspectRatio()
local h = application.getCurrentUserViewportHeight()
local w = application.getCurrentUserViewportWidth()
- freezer
- Gold Boarder

- Posts: 164
2 posts
• Page 1 of 1