FANDOM


Here's a simple function that will go through and select the highest resolution for you.



/* 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;
	}
}

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.