mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 06:08:03 +02:00
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
a9028a492f
commit
71037ebfb4
1 changed files with 4 additions and 2 deletions
|
|
@ -662,8 +662,10 @@ xf86DDCMonitorSet(int scrnIndex, MonPtr Monitor, xf86MonPtr DDC)
|
||||||
|
|
||||||
Monitor->DDC = DDC;
|
Monitor->DDC = DDC;
|
||||||
|
|
||||||
Monitor->widthmm = 10 * DDC->features.hsize;
|
if (Monitor->widthmm <= 0 && Monitor->heightmm <= 0) {
|
||||||
Monitor->heightmm = 10 * DDC->features.vsize;
|
Monitor->widthmm = 10 * DDC->features.hsize;
|
||||||
|
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…
Add table
Reference in a new issue