Navigation Menu

Skip to content

Commit

Permalink
Fixed 320x200 video mode on framebuffer console
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Lantinga committed Apr 26, 2001
1 parent 668dbc3 commit 73c41a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs.html
Expand Up @@ -16,6 +16,7 @@ <H2>
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!)
Expand Down
4 changes: 2 additions & 2 deletions src/video/fbcon/SDL_fbvideo.c
Expand Up @@ -271,15 +271,15 @@ 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 */
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 ) {
next_mode = i;
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
Expand Down

0 comments on commit 73c41a0

Please sign in to comment.