[PATCH] Fix get_std_timing
From: Kronos <hidden>
Date: 2004-03-04 22:29:44
Hi, I thought that this was fixed ages ago, but I see that the bug it's still here. To recap, get_std_timing will exit after the first iteration on VESA modedb. Fix is trivial, James please apply:
--- linux-2.6/drivers/video/fbmon.c.orig Thu Mar 4 23:11:43 2004
+++ linux-2.6/drivers/video/fbmon.c Thu Mar 4 23:12:46 2004@@ -572,12 +572,12 @@ vesa_modes[i].yres == yres && vesa_modes[i].refresh == refresh) { *mode = vesa_modes[i]; - break; - } else { - calc_mode_timings(xres, yres, refresh, mode); - break; + return 1; } } + + calc_mode_timings(xres, yres, refresh, mode); + return 1; }
Luca -- Home: http://kronoz.cjb.net Tentare e` il primo passo verso il fallimento. Homer J. Simpson ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click