Commit a4cb3b21 authored by Sam Lantinga's avatar Sam Lantinga

Oops, actually use the timings in the modes db. :)

FIXME: Add some way of specifying the refresh rate we want to select!

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401220
parent a61ae6f3
...@@ -770,10 +770,19 @@ static int choose_fbmodes_mode(struct fb_var_screeninfo *vinfo) ...@@ -770,10 +770,19 @@ static int choose_fbmodes_mode(struct fb_var_screeninfo *vinfo)
if ( modesdb ) { if ( modesdb ) {
/* Parse the mode definition file */ /* Parse the mode definition file */
while ( read_fbmodes_mode(modesdb, &cinfo) ) { while ( read_fbmodes_mode(modesdb, &cinfo) ) {
if ( vinfo->xres == cinfo.xres && if ( (vinfo->xres == cinfo.xres && vinfo->yres == cinfo.yres) &&
vinfo->yres == cinfo.yres ) { (!matched || (vinfo->bits_per_pixel == cinfo.bits_per_pixel)) ) {
vinfo->pixclock = cinfo.pixclock;
vinfo->left_margin = cinfo.left_margin;
vinfo->right_margin = cinfo.right_margin;
vinfo->upper_margin = cinfo.upper_margin;
vinfo->lower_margin = cinfo.lower_margin;
vinfo->hsync_len = cinfo.hsync_len;
vinfo->vsync_len = cinfo.vsync_len;
if ( matched ) {
break;
}
matched = 1; matched = 1;
break;
} }
} }
fclose(modesdb); fclose(modesdb);
......
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