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.
/* Find Highest Rez */ void SetDisplay()
//Cycle Through 11 Resolution Modes and Find The Highest
{
if (dbCheckDisplayMode ( 1680, 1050, 32 ))
{
dbSetDisplayMode ( 1680, 1050, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1600, 1024, 32 ))
{
dbSetDisplayMode ( 1600, 1024, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1440, 900, 32 ))
{
dbSetDisplayMode ( 1440, 900, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1400, 1050, 32 ))
{
dbSetDisplayMode ( 1400, 1050, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1280, 1024, 32 ))
{
dbSetDisplayMode ( 1280, 1024, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1280, 960, 32 ))
{
dbSetDisplayMode ( 1280, 960, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1280, 800, 32 ))
{
dbSetDisplayMode ( 800, 600, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1280, 720, 32 ))
{
dbSetDisplayMode ( 1280, 720, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1152, 864, 32 ))
{
dbSetDisplayMode ( 1152, 864, 32 );
//break;
}
else if (dbCheckDisplayMode ( 1024, 768, 32 ))
{
dbSetDisplayMode ( 1024, 768, 32 );
//break;
}
else if (dbCheckDisplayMode ( 800, 600, 32 ))
{
dbSetDisplayMode ( 800, 600, 32 );
//break;
}
}