diff options
author | Keith Packard <keithp@keithp.com> | 2010-12-05 20:57:47 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-12-06 20:09:04 -0800 |
commit | 752c368421c1c824752cf467fba9318d75d2ca2c (patch) | |
tree | 719b2c506194607708369cc782de39e3cc792c5a /hw/xfree86/common/xf86Helper.c | |
parent | a88d70fb20a2bc3152b84adff4380857e6cfadf5 (diff) |
Separate out screen size and screen pixmap sizes in RRScreenSizeSet
This provides for separate sizes for the screen scanout and rendering
buffer and the application-visible screen size.
Signed-off-by: Keith Packard <keithp@keithp.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Diffstat (limited to 'hw/xfree86/common/xf86Helper.c')
-rw-r--r-- | hw/xfree86/common/xf86Helper.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index ea0acbfe4..01f9864bb 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -1038,7 +1038,12 @@ xf86SetRootClip (ScreenPtr pScreen, Bool enable) RegionInit(&pWin->winSize, &box, 1); RegionInit(&pWin->borderSize, &box, 1); if (WasViewable) + { + PixmapPtr pPixmap = (*pScreen->GetScreenPixmap) (pScreen); + box.x2 = pPixmap->drawable.width; + box.y2 = pPixmap->drawable.height; RegionReset(&pWin->borderClip, &box); + } pWin->drawable.width = pScreen->width; pWin->drawable.height = pScreen->height; RegionBreak(&pWin->clipList); @@ -1116,7 +1121,6 @@ xf86EnableDisableFBAccess(int scrnIndex, Bool enable) */ if (!xf86Resetting) xf86SetRootClip (pScreen, TRUE); - } else { |