diff options
author | Keith Packard <keithp@keithp.com> | 2007-01-25 00:29:20 +0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2007-01-24 13:34:58 -0800 |
commit | b6b855932109b4bc3454f07bef8cb079d79ca369 (patch) | |
tree | f564ccbe6e3bf4288ff4abb291fb00bf6da54d2b /randr/rrxinerama.c | |
parent | 788cfce911793a26aed16f38f30678ecee82c873 (diff) |
Make Xinearama screen information reflect CRTC rotation.
Diffstat (limited to 'randr/rrxinerama.c')
-rw-r--r-- | randr/rrxinerama.c | 6 |
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); |