Scripts / Screen resolution

Author
Message
duramin
8
Years of Service
User Offline
Joined: 25th May 2015
Location:
Posted: 14th Jan 2016 10:17
Hi there,

need a little help: Is there a command or a piece of code or some global variables to get the actual screen resolution?

Thank you in advance
PM
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Jan 2016 12:41
GetDeviceHeight() -- returns the current display height in pixels
GetDeviceWidth() -- returns the display width in pixels
i dont believe you can change resolution or anything yet but hopefully those will help you
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11
Belidos
3D Media Maker
8
Years of Service
User Offline
Joined: 23rd Nov 2015
Playing: The Game
Posted: 14th Jan 2016 12:58
hmn I'm wondering if the startdisplay and winzoneimage scripts could be modified to detect resolution and load the closest sized image for a more full screen picture, is that possible?
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 14th Jan 2016 14:03
use sprites which will automatically resize to fit the screen if you use SetSpriteSize(name,100,100) as they are % based
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11
duramin
8
Years of Service
User Offline
Joined: 25th May 2015
Location:
Posted: 14th Jan 2016 15:04
Aye, thanks smallg and yes, it helps a lot!
PM

Login to post a reply

Server time is: 2024-04-27 23:20:39
Your offset time is: 2024-04-27 23:20:39