Fixed 320x200 video mode on framebuffer console
authorSam Lantinga <slouken@lokigames.com>
Thu, 26 Apr 2001 17:05:23 +0000
changeset 6332f458469f0
parent 5 ea6d917c9d51
child 7 2c4a3a759c66
Fixed 320x200 video mode on framebuffer console
docs.html
src/video/fbcon/SDL_fbvideo.c
     1.1 --- a/docs.html	Thu Apr 26 16:55:37 2001 +0000
     1.2 +++ b/docs.html	Thu Apr 26 17:05:23 2001 +0000
     1.3 @@ -16,6 +16,7 @@
     1.4  Major changes since SDL 1.0.0:
     1.5  </H2>
     1.6  <UL>
     1.7 +	<LI> 1.2.1: Fixed 320x200 video mode on framebuffer console
     1.8  	<LI> 1.2.1: Improved robustness for the ELO touchpad (thanks Alex!)
     1.9  	<LI> 1.2.1: Added support for building under Cygwin on Windows
    1.10  	<LI> 1.2.1: Added a dummy video driver for benchmarking (thanks Ryan!)
     2.1 --- a/src/video/fbcon/SDL_fbvideo.c	Thu Apr 26 16:55:37 2001 +0000
     2.2 +++ b/src/video/fbcon/SDL_fbvideo.c	Thu Apr 26 17:05:23 2001 +0000
     2.3 @@ -271,7 +271,7 @@
     2.4  	}
     2.5  
     2.6  	/* Only allow a mode if we have a valid timing for it */
     2.7 -	next_mode = 0;
     2.8 +	next_mode = -1;
     2.9  	for ( i=0; i<(sizeof(vesa_timings)/sizeof(vesa_timings[0])); ++i ) {
    2.10  		if ( (w == vesa_timings[i].xres) &&
    2.11  		     (h == vesa_timings[i].yres) && vesa_timings[i].pixclock ) {
    2.12 @@ -279,7 +279,7 @@
    2.13  			break;
    2.14  		}
    2.15  	}
    2.16 -	if ( ! next_mode ) {
    2.17 +	if ( next_mode == -1 ) {
    2.18  #ifdef FBCON_DEBUG
    2.19  		fprintf(stderr, "No valid timing line for mode %dx%d\n", w, h);
    2.20  #endif