diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-12 20:14:05 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-13 11:17:02 +0930 |
commit | 1fc1a2897e9185838c29d9ffff07c39d2fdf174f (patch) | |
tree | 48984bc4333b42eaddeb9380dd08cd45cc7a05cb /mi | |
parent | 913989d643595030e67e7c0a758a16ae0da62ed9 (diff) |
Remove UndisplayCursor API.
We can achieve the same thing by simply displaying a NullCursor, there's no
need for a separate API.
Diffstat (limited to 'mi')
-rw-r--r-- | mi/mipointer.c | 13 | ||||
-rw-r--r-- | mi/mipointer.h | 4 | ||||
-rw-r--r-- | mi/misprite.c | 19 |
3 files changed, 0 insertions, 36 deletions
diff --git a/mi/mipointer.c b/mi/mipointer.c index 572af1b88..82439474c 100644 --- a/mi/mipointer.c +++ b/mi/mipointer.c @@ -60,7 +60,6 @@ static Bool miPointerUnrealizeCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor); static Bool miPointerDisplayCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor); -static void miPointerUndisplayCursor(DeviceIntPtr pDev, ScreenPtr pScreen); static void miPointerConstrainCursor(DeviceIntPtr pDev, ScreenPtr pScreen, BoxPtr pBox); static void miPointerPointerNonInterestBox(DeviceIntPtr pDev, @@ -113,8 +112,6 @@ miPointerInitialize (pScreen, spriteFuncs, screenFuncs, waitForUpdate) pScreen->ConstrainCursor = miPointerConstrainCursor; pScreen->CursorLimits = miPointerCursorLimits; pScreen->DisplayCursor = miPointerDisplayCursor; - pScreen->UndisplayCursor = miPointerUndisplayCursor; - pScreen->UndisplayCursor = miPointerUndisplayCursor; pScreen->RealizeCursor = miPointerRealizeCursor; pScreen->UnrealizeCursor = miPointerUnrealizeCursor; pScreen->SetCursorPosition = miPointerSetCursorPosition; @@ -213,16 +210,6 @@ miPointerDisplayCursor (pDev, pScreen, pCursor) } static void -miPointerUndisplayCursor(pDev, pScreen) - DeviceIntPtr pDev; - ScreenPtr pScreen; -{ - SetupScreen(pScreen); - if (pDev->isMaster && pDev->spriteInfo->spriteOwner) - (*pScreenPriv->spriteFuncs->UndisplayCursor)(pDev, pScreen); -} - -static void miPointerConstrainCursor (pDev, pScreen, pBox) DeviceIntPtr pDev; ScreenPtr pScreen; diff --git a/mi/mipointer.h b/mi/mipointer.h index ed518d184..5cbf5270d 100644 --- a/mi/mipointer.h +++ b/mi/mipointer.h @@ -62,10 +62,6 @@ typedef struct _miPointerSpriteFuncRec { DeviceIntPtr /* pDev */, ScreenPtr /* pScr */ ); - void (*UndisplayCursor)( - DeviceIntPtr /* pDev */, - ScreenPtr /* pScr */ - ); } miPointerSpriteFuncRec, *miPointerSpriteFuncPtr; typedef struct _miPointerScreenFuncRec { diff --git a/mi/misprite.c b/mi/misprite.c index 9e4b6851e..12180235f 100644 --- a/mi/misprite.c +++ b/mi/misprite.c @@ -125,7 +125,6 @@ static void miSpriteSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor, int x, int y); static void miSpriteMoveCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y); -static void miSpriteUndisplayCursor(DeviceIntPtr pDev, ScreenPtr pScreen); _X_EXPORT miPointerSpriteFuncRec miSpritePointerFuncs = { miSpriteRealizeCursor, @@ -134,7 +133,6 @@ _X_EXPORT miPointerSpriteFuncRec miSpritePointerFuncs = { miSpriteMoveCursor, miSpriteDeviceCursorInitialize, miSpriteDeviceCursorCleanup, - miSpriteUndisplayCursor }; /* @@ -911,23 +909,6 @@ miSpriteDeviceCursorCleanup(pDev, pScreen) } } -static void -miSpriteUndisplayCursor(pDev, pScreen) - DeviceIntPtr pDev; - ScreenPtr pScreen; -{ - miCursorInfoPtr pCursorInfo; - - if (!pDev->isMaster && !pDev->u.master) - { - ErrorF("[mi] miSpriteUndisplayCursor called for floating device.\n"); - return; - } - pCursorInfo = MISPRITE(pDev); - if (pCursorInfo && pCursorInfo->isUp) - miSpriteRemoveCursor(pDev, pScreen); -} - /* * undraw/draw cursor */ |