summaryrefslogtreecommitdiff
path: root/randr/rrxinerama.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2007-01-25 00:29:20 +0800
committerEric Anholt <eric@anholt.net>2007-01-24 13:34:58 -0800
commitb6b855932109b4bc3454f07bef8cb079d79ca369 (patch)
treef564ccbe6e3bf4288ff4abb291fb00bf6da54d2b /randr/rrxinerama.c
parent788cfce911793a26aed16f38f30678ecee82c873 (diff)
Make Xinearama screen information reflect CRTC rotation.
Diffstat (limited to 'randr/rrxinerama.c')
-rw-r--r--randr/rrxinerama.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/randr/rrxinerama.c b/randr/rrxinerama.c
index 8b951455c..1db27f14c 100644
--- a/randr/rrxinerama.c
+++ b/randr/rrxinerama.c
@@ -290,10 +290,12 @@ ProcRRXineramaQueryScreens(ClientPtr client)
RRCrtcPtr crtc = pScrPriv->crtcs[i];
if (RRXineramaCrtcActive (crtc))
{
+ int width, height;
+ RRCrtcGetScanoutSize (crtc, &width, &height);
scratch.x_org = crtc->x;
scratch.y_org = crtc->y;
- scratch.width = crtc->mode->mode.width;
- scratch.height = crtc->mode->mode.height;
+ scratch.width = width;
+ scratch.height = height;
if(client->swapped) {
register int n;
swaps(&scratch.x_org, n);