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:
parent
7c16b68ab8
commit
3b73d62791
|
@ -662,8 +662,10 @@ xf86DDCMonitorSet(int scrnIndex, MonPtr Monitor, xf86MonPtr DDC)
|
||||||
|
|
||||||
Monitor->DDC = DDC;
|
Monitor->DDC = DDC;
|
||||||
|
|
||||||
|
if (Monitor->widthmm <= 0 && Monitor->heightmm <= 0) {
|
||||||
Monitor->widthmm = 10 * DDC->features.hsize;
|
Monitor->widthmm = 10 * DDC->features.hsize;
|
||||||
Monitor->heightmm = 10 * DDC->features.vsize;
|
Monitor->heightmm = 10 * DDC->features.vsize;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If this is a digital display, then we can use reduced blanking.
|
* If this is a digital display, then we can use reduced blanking.
|
||||||
|
|
Loading…
Reference in New Issue