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.

Dark GDK / Is there a way to make this code better?

Author
Message
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 7th Oct 2008 05:46
Below is what I use to check and set the screen to the highest resolution but I was looking in the help files and I saw:

Quote: "dbPerformChecklistForDisplayModes
This command will scan your system and make a checklist of all display modes your video card can handle. Use the Checklist commands in the System command set to access the checklist.

Syntax
void dbPerformCheckListForDisplayModes ( void ) "


So I'm wondering if there is a way to use that instead.


Niels Henriksen
20
Years of Service
User Offline
Joined: 27th Sep 2004
Location: Behind you breathing heavely
Posted: 7th Oct 2008 10:41
You have a mistanke in the code

else if (dbCheckDisplayMode ( 1280, 800, 32 ))

{
dbSetDisplayMode ( 800, 600, 32 );
//break;
}

Why not make an option screen and let the user decide?

Or make an array with the numbers and cycle through an for-loop instead.

Niels Henriksen
www.tales-of-the-realms.com
if Microsoft can sell software with bugs, so can I.
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 7th Oct 2008 15:11
Lol, this is what I have already suggested to you. Have that collect a list of the available video modes, then do a basic little input to allow the user to choose thier own resolution preference. Some people choose lower resoultion to attempt to up thier FPS.

I saw a really nice game made with DBPro that had a menu where you could click to choose your own resolution. You may want to look into this.

www.Helios-Online.net
ReiKumar
16
Years of Service
User Offline
Joined: 23rd Sep 2008
Location:
Posted: 7th Oct 2008 22:48
This isnt for a game, its for a personal simulation that I'm using for myself.
SushiBox
16
Years of Service
User Offline
Joined: 20th Sep 2008
Location: Ohio
Posted: 7th Oct 2008 23:31
If its ONLY for yourself, just pick a resolution that looks nice and set it. Shouldn't be a problem then...

www.Helios-Online.net

Login to post a reply

Server time is: 2024-11-25 03:58:57
Your offset time is: 2024-11-25 03:58:57