mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-30 20:10:07 +01: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->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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue