diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-09-24 10:40:40 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-09-24 10:40:40 -0400 |
commit | 90669f6cb5ada9067d6fccc7f54c69b367862f42 (patch) | |
tree | 80a9d7d3f2025283f3302c0bc64dcbb94e783d11 /src/radeon_driver.c | |
parent | 97a4e747bfac14f34646c55ddf639e8fe22f2f55 (diff) |
radeon: remove old pre-randr rotation cruft
leftover from the randr 1.2 conversion.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 2de682ff..a9aafd3f 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3261,33 +3261,6 @@ static void RADEONBlockHandler(int i, pointer blockData, } static void -RADEONPointerMoved(int index, int x, int y) -{ - ScrnInfoPtr pScrn = xf86Screens[index]; - RADEONInfoPtr info = RADEONPTR(pScrn); - int newX = x, newY = y; - - switch (info->rotation) { - case RR_Rotate_0: - break; - case RR_Rotate_90: - newX = y; - newY = pScrn->pScreen->width - x - 1; - break; - case RR_Rotate_180: - newX = pScrn->pScreen->width - x - 1; - newY = pScrn->pScreen->height - y - 1; - break; - case RR_Rotate_270: - newX = pScrn->pScreen->height - y - 1; - newY = x; - break; - } - - (*info->PointerMoved)(index, newX, newY); -} - -static void RADEONInitBIOSRegisters(ScrnInfoPtr pScrn) { RADEONInfoPtr info = RADEONPTR(pScrn); @@ -3790,10 +3763,6 @@ Bool RADEONScreenInit(int scrnIndex, ScreenPtr pScreen, if (!xf86CrtcScreenInit (pScreen)) return FALSE; - /* Wrap pointer motion to flip touch screen around */ - info->PointerMoved = pScrn->PointerMoved; - pScrn->PointerMoved = RADEONPointerMoved; - /* Colormap setup */ xf86DrvMsgVerb(pScrn->scrnIndex, X_INFO, RADEON_LOGLEVEL_DEBUG, "Initializing color map\n"); |