xf86DDCMonitorSet: Honor the DisplaySize from the config file.

We honor sync ranges and pixel clock settings from the config here, no
reason to ignore DisplaySize.
This commit is contained in:
Adam Jackson 2008-03-03 15:43:22 -05:00
parent 7c16b68ab8
commit 3b73d62791

View File

@ -662,8 +662,10 @@ xf86DDCMonitorSet(int scrnIndex, MonPtr Monitor, xf86MonPtr DDC)
Monitor->DDC = DDC;
Monitor->widthmm = 10 * DDC->features.hsize;
Monitor->heightmm = 10 * DDC->features.vsize;
if (Monitor->widthmm <= 0 && Monitor->heightmm <= 0) {
Monitor->widthmm = 10 * DDC->features.hsize;
Monitor->heightmm = 10 * DDC->features.vsize;
}
/*
* If this is a digital display, then we can use reduced blanking.