diff src/video/windib/SDL_dibvideo.c @ 1771:8d3ca155c396

Fixed bug #217 Sort the DirectX video modes largest to smallest
author Sam Lantinga <slouken@libsdl.org>
date Sun, 07 May 2006 04:02:48 +0000
parents 8d9bb0cf2c2a
children 61f86f36afb9
line wrap: on
line diff
--- a/src/video/windib/SDL_dibvideo.c	Sun May 07 03:44:58 2006 +0000
+++ b/src/video/windib/SDL_dibvideo.c	Sun May 07 04:02:48 2006 +0000
@@ -348,7 +348,6 @@
 #endif
 	}
 	/* Sort the mode lists */
-	if( i > 1 )
 	for ( i=0; i<NUM_MODELISTS; ++i ) {
 		if ( SDL_nummodes[i] > 0 ) {
 			SDL_qsort(SDL_modelist[i], SDL_nummodes[i], sizeof *SDL_modelist[i], cmpmodes);
@@ -361,7 +360,7 @@
 	// because SDL surface conversion is much faster than the WinCE one.
 	// Although it should be tested on devices with graphics accelerator.
 
-    DIB_AddMode(this, vformat->BitsPerPixel,
+	DIB_AddMode(this, vformat->BitsPerPixel,
 			GetDeviceCaps(GetDC(NULL), HORZRES), 
 			GetDeviceCaps(GetDC(NULL), VERTRES));