Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Detecting Resolutions

Author
Message
Gunslinger
19
Years of Service
User Offline
Joined: 29th May 2007
Location:
Posted: 16th Feb 2012 23:29
Hey there.
Is there a way to detect available video resolutions?
I want to make a Combobox in the options with all resolutions of the users hardware.
Millenium7
21
Years of Service
User Offline
Joined: 13th Dec 2004
Location:
Posted: 17th Feb 2012 16:24
*stretches fingers and begins madly typing out a new function*

here you go



Simply call the function at any time. This function will find all available resolutions, but filter them down according to your specified minimum dimensions (i.e. don't show anything below 800x600, and must be at least 16bit colour mode)

Example
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 21st Feb 2012 01:46
interesting... I didnt know you could do it that way...

Nice one Millenium7

Login to post a reply

Server time is: 2026-07-09 23:12:16
Your offset time is: 2026-07-09 23:12:16