Adjust the screen pixmap's dimensions in xf86RandR12ScreenSetSize.
This commit is contained in:
parent
ca784df84e
commit
38d14e8589
|
@ -337,6 +337,7 @@ xf86RandR12ScreenSetSize (ScreenPtr pScreen,
|
||||||
ScrnInfoPtr pScrn = XF86SCRNINFO(pScreen);
|
ScrnInfoPtr pScrn = XF86SCRNINFO(pScreen);
|
||||||
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
|
xf86CrtcConfigPtr config = XF86_CRTC_CONFIG_PTR(pScrn);
|
||||||
WindowPtr pRoot = WindowTable[pScreen->myNum];
|
WindowPtr pRoot = WindowTable[pScreen->myNum];
|
||||||
|
PixmapPtr pScrnPix = (*pScreen->GetScreenPixmap)(pScreen);
|
||||||
Bool ret = FALSE;
|
Bool ret = FALSE;
|
||||||
|
|
||||||
if (randrp->virtualX == -1 || randrp->virtualY == -1)
|
if (randrp->virtualX == -1 || randrp->virtualY == -1)
|
||||||
|
@ -353,8 +354,8 @@ xf86RandR12ScreenSetSize (ScreenPtr pScreen,
|
||||||
|
|
||||||
ret = TRUE;
|
ret = TRUE;
|
||||||
|
|
||||||
pScreen->width = width;
|
pScreen->width = pScrnPix->drawable.width = width;
|
||||||
pScreen->height = height;
|
pScreen->height = pScrnPix->drawable.height = height;
|
||||||
pScreen->mmWidth = mmWidth;
|
pScreen->mmWidth = mmWidth;
|
||||||
pScreen->mmHeight = mmHeight;
|
pScreen->mmHeight = mmHeight;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue