summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2009-09-24 10:40:40 -0400
committerAlex Deucher <alexdeucher@gmail.com>2009-09-24 10:40:40 -0400
commit90669f6cb5ada9067d6fccc7f54c69b367862f42 (patch)
tree80a9d7d3f2025283f3302c0bc64dcbb94e783d11 /src
parent97a4e747bfac14f34646c55ddf639e8fe22f2f55 (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')
-rw-r--r--src/radeon.h2
-rw-r--r--src/radeon_driver.c31
2 files changed, 0 insertions, 33 deletions
diff --git a/src/radeon.h b/src/radeon.h
index fc9614e..fc21955 100644
--- a/src/radeon.h
+++ b/src/radeon.h
@@ -951,8 +951,6 @@ typedef struct {
unsigned long FbFreeStart, FbFreeSize;
unsigned char* BIOSCopy;
- Rotation rotation;
- void (*PointerMoved)(int, int, int);
CreateScreenResourcesProcPtr CreateScreenResources;
/* if no devices are connected at server startup */
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 2de682f..a9aafd3 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");