src/video/fbcon/SDL_fbvideo.c
changeset 6 332f458469f0
parent 0 74212992fb08
child 91 e85e03f195b4
--- a/src/video/fbcon/SDL_fbvideo.c	Thu Apr 26 16:55:37 2001 +0000
+++ b/src/video/fbcon/SDL_fbvideo.c	Thu Apr 26 17:05:23 2001 +0000
@@ -271,7 +271,7 @@
 	}
 
 	/* Only allow a mode if we have a valid timing for it */
-	next_mode = 0;
+	next_mode = -1;
 	for ( i=0; i<(sizeof(vesa_timings)/sizeof(vesa_timings[0])); ++i ) {
 		if ( (w == vesa_timings[i].xres) &&
 		     (h == vesa_timings[i].yres) && vesa_timings[i].pixclock ) {
@@ -279,7 +279,7 @@
 			break;
 		}
 	}
-	if ( ! next_mode ) {
+	if ( next_mode == -1 ) {
 #ifdef FBCON_DEBUG
 		fprintf(stderr, "No valid timing line for mode %dx%d\n", w, h);
 #endif