Fixed 320x200 video mode on framebuffer console
authorSam Lantinga <slouken@lokigames.com>
Thu, 26 Apr 2001 17:05:23 +0000
changeset 6 332f458469f0
parent 5 ea6d917c9d51
child 7 2c4a3a759c66
Fixed 320x200 video mode on framebuffer console
docs.html
src/video/fbcon/SDL_fbvideo.c
--- a/docs.html	Thu Apr 26 16:55:37 2001 +0000
+++ b/docs.html	Thu Apr 26 17:05:23 2001 +0000
@@ -16,6 +16,7 @@
 Major changes since SDL 1.0.0:
 </H2>
 <UL>
+	<LI> 1.2.1: Fixed 320x200 video mode on framebuffer console
 	<LI> 1.2.1: Improved robustness for the ELO touchpad (thanks Alex!)
 	<LI> 1.2.1: Added support for building under Cygwin on Windows
 	<LI> 1.2.1: Added a dummy video driver for benchmarking (thanks Ryan!)
--- 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