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/rrpointer.c | |
parent | 788cfce911793a26aed16f38f30678ecee82c873 (diff) |
Make Xinearama screen information reflect CRTC rotation.
Diffstat (limited to 'randr/rrpointer.c')
-rw-r--r-- | randr/rrpointer.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/randr/rrpointer.c b/randr/rrpointer.c index 2a5ae7d2f..802dcb2c4 100644 --- a/randr/rrpointer.c +++ b/randr/rrpointer.c @@ -22,32 +22,6 @@ #include "randrstr.h" -/** - * Returns the width/height that the crtc scans out from the framebuffer - */ -static void -RRCrtcGetScanoutSize(RRCrtcPtr crtc, int *width, int *height) -{ - if (crtc->mode == NULL) { - *width = 0; - *height = 0; - return; - } - - switch (crtc->rotation & 0xf) { - case RR_Rotate_0: - case RR_Rotate_180: - *width = crtc->mode->mode.width; - *height = crtc->mode->mode.height; - break; - case RR_Rotate_90: - case RR_Rotate_270: - *width = crtc->mode->mode.height; - *height = crtc->mode->mode.width; - break; - } -} - /* * When the pointer moves, check to see if the specified position is outside * any of theavailable CRTCs and move it to a 'sensible' place if so, where |