Fixed 320x200 video mode on framebuffer console
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%407
This commit is contained in:
parent
bc2a95882b
commit
5f9b498872
2 changed files with 3 additions and 2 deletions
|
@ -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 */
|
||||
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 @@ static int FB_AddMode(_THIS, int index, unsigned int w, unsigned int h)
|
|||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue