Commit 5f9b4988 authored by Sam Lantinga's avatar Sam Lantinga

Fixed 320x200 video mode on framebuffer console

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%407
parent bc2a9588
...@@ -16,6 +16,7 @@ be found at the <A HREF="http://www.libsdl.org/"> main SDL page</A>. ...@@ -16,6 +16,7 @@ be found at the <A HREF="http://www.libsdl.org/"> main SDL page</A>.
Major changes since SDL 1.0.0: Major changes since SDL 1.0.0:
</H2> </H2>
<UL> <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: 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 support for building under Cygwin on Windows
<LI> 1.2.1: Added a dummy video driver for benchmarking (thanks Ryan!) <LI> 1.2.1: Added a dummy video driver for benchmarking (thanks Ryan!)
......
...@@ -271,7 +271,7 @@ static int FB_AddMode(_THIS, int index, unsigned int w, unsigned int h) ...@@ -271,7 +271,7 @@ static int FB_AddMode(_THIS, int index, unsigned int w, unsigned int h)
} }
/* Only allow a mode if we have a valid timing for it */ /* 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 ) { for ( i=0; i<(sizeof(vesa_timings)/sizeof(vesa_timings[0])); ++i ) {
if ( (w == vesa_timings[i].xres) && if ( (w == vesa_timings[i].xres) &&
(h == vesa_timings[i].yres) && vesa_timings[i].pixclock ) { (h == vesa_timings[i].yres) && vesa_timings[i].pixclock ) {
...@@ -279,7 +279,7 @@ static int FB_AddMode(_THIS, int index, unsigned int w, unsigned int h) ...@@ -279,7 +279,7 @@ static int FB_AddMode(_THIS, int index, unsigned int w, unsigned int h)
break; break;
} }
} }
if ( ! next_mode ) { if ( next_mode == -1 ) {
#ifdef FBCON_DEBUG #ifdef FBCON_DEBUG
fprintf(stderr, "No valid timing line for mode %dx%d\n", w, h); fprintf(stderr, "No valid timing line for mode %dx%d\n", w, h);
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment