diff src/video/fbcon/SDL_fbvideo.c @ 6:332f458469f0

Fixed 320x200 video mode on framebuffer console
author Sam Lantinga <slouken@lokigames.com>
date Thu, 26 Apr 2001 17:05:23 +0000
parents 74212992fb08
children e85e03f195b4
line wrap: on
line diff
--- 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