summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Maathuis <madman2003@gmail.com>2008-02-17 18:47:28 +0100
committerMaarten Maathuis <madman2003@gmail.com>2008-02-17 18:47:28 +0100
commita48cc88ea2674c28b69b8d738b168cbafcf4001f (patch)
treeafe4234b0b3e15f4de2e2d74352a3efd2f5a1250
parent70c0592a97c7dc9db0576d32b3bdbe4766520509 (diff)
Fix rotation for multi-monitor situation.
- The (x,y)-coordinates of the crtc were not being passed as xFixed values, which made it an obscure bug to find. - Fix bug #13787.
-rw-r--r--hw/xfree86/modes/xf86Rotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xfree86/modes/xf86Rotate.c b/hw/xfree86/modes/xf86Rotate.c
index c129d9b92..e2d6295b9 100644
--- a/hw/xfree86/modes/xf86Rotate.c
+++ b/hw/xfree86/modes/xf86Rotate.c
@@ -580,9 +580,9 @@ xf86CrtcRotate (xf86CrtcPtr crtc, DisplayModePtr mode, Rotation rotation)
580 } 580 }
581 else 581 else
582 { 582 {
583 PictureTransformTranslate (&crtc_to_fb, &fb_to_crtc, crtc->x, crtc->y); 583 PictureTransformTranslate (&crtc_to_fb, &fb_to_crtc, F(crtc->x), F(crtc->y));
584 PictureTransformIsInverse ("offset", &crtc_to_fb, &fb_to_crtc); 584 PictureTransformIsInverse ("offset", &crtc_to_fb, &fb_to_crtc);
585 585
586 /* 586 /*
587 * these are the size of the shadow pixmap, which 587 * these are the size of the shadow pixmap, which
588 * matches the mode, not the pre-rotated copy in the 588 * matches the mode, not the pre-rotated copy in the