summaryrefslogtreecommitdiff
path: root/vmwgfx/vmwgfx_crtc.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmwgfx/vmwgfx_crtc.c')
-rw-r--r--vmwgfx/vmwgfx_crtc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vmwgfx/vmwgfx_crtc.c b/vmwgfx/vmwgfx_crtc.c
index 8f8ced4..13ca7e5 100644
--- a/vmwgfx/vmwgfx_crtc.c
+++ b/vmwgfx/vmwgfx_crtc.c
@@ -180,9 +180,11 @@ crtc_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
if (!xf86CrtcRotate(crtc))
return FALSE;
- if (crtc->transform_in_use && crtc->rotatedData)
+ if (crtc->transform_in_use && crtc->rotatedData) {
+ x = 0;
+ y = 0;
pixmap = (PixmapPtr) crtc->rotatedData;
- else
+ } else
pixmap = pScreen->GetScreenPixmap(pScreen);
if (crtcp->box.pixmap != pixmap) {