Set displayWidth to a sufficient value for the modes we come up with for LVDS.
Reported by: Lukáš Hejtmánek
This commit is contained in:
parent
bcb441225d
commit
effab21c3d
|
|
@ -1693,6 +1693,10 @@ static int i830ValidateFPModes(ScrnInfoPtr pScrn, char **ppModeName)
|
|||
xf86DrvMsg(pScrn->scrnIndex, X_INFO,
|
||||
"Total number of valid FP mode(s) found: %d\n", count);
|
||||
|
||||
/* Adjust the display pitch to fit the modes we've come up with. */
|
||||
pScrn->displayWidth = MAX(pScrn->displayWidth, pScrn->virtualX);
|
||||
pScrn->displayWidth = (pScrn->displayWidth + 63) & ~63;
|
||||
|
||||
return count;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue