changeset 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 ea6d917c9d51
children 2c4a3a759c66
files docs.html src/video/fbcon/SDL_fbvideo.c
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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