diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-11-08 09:34:35 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-11-08 09:34:35 +1030 |
commit | 184a7b8917a15bb2c719153b9b016c03aab42101 (patch) | |
tree | ff20254fb9752d57113c352c17afc4f8c14e2eaa /mi/misprite.c | |
parent | a8808ac3d093f33b39de109107d396fe0a02c4fc (diff) | |
parent | 0b729051c04da7068f1e6dd319190bd0a362b2c0 (diff) |
Merge branch 'mpx' into mdsd
Conflicts:
Xi/opendev.c
Diffstat (limited to 'mi/misprite.c')
-rw-r--r-- | mi/misprite.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/mi/misprite.c b/mi/misprite.c index 6aad36cfb..8c99abbc7 100644 --- a/mi/misprite.c +++ b/mi/misprite.c @@ -106,9 +106,6 @@ static void miSpriteInstallColormap(ColormapPtr pMap); static void miSpriteStoreColors(ColormapPtr pMap, int ndef, xColorItem *pdef); -static void miSpriteSaveDoomedAreas(WindowPtr pWin, - RegionPtr pObscured, int dx, - int dy); static void miSpriteComputeSaved(DeviceIntPtr pDev, ScreenPtr pScreen); @@ -241,8 +238,6 @@ miSpriteInitialize (pScreen, cursorFuncs, screenFuncs) pScreenPriv->CopyWindow = pScreen->CopyWindow; - pScreenPriv->SaveDoomedAreas = pScreen->SaveDoomedAreas; - pScreenPriv->InstallColormap = pScreen->InstallColormap; pScreenPriv->StoreColors = pScreen->StoreColors; @@ -268,9 +263,6 @@ miSpriteInitialize (pScreen, cursorFuncs, screenFuncs) pScreen->SourceValidate = miSpriteSourceValidate; pScreen->CopyWindow = miSpriteCopyWindow; - - pScreen->SaveDoomedAreas = miSpriteSaveDoomedAreas; - pScreen->InstallColormap = miSpriteInstallColormap; pScreen->StoreColors = miSpriteStoreColors; @@ -309,7 +301,6 @@ miSpriteCloseScreen (i, pScreen) pScreen->InstallColormap = pScreenPriv->InstallColormap; pScreen->StoreColors = pScreenPriv->StoreColors; - pScreen->SaveDoomedAreas = pScreenPriv->SaveDoomedAreas; DamageDestroy (pScreenPriv->pDamage); xfree ((pointer) pScreenPriv); @@ -694,56 +685,6 @@ miSpriteFindColors (miCursorInfoPtr pDevCursor, ScreenPtr pScreen) } /* - * BackingStore wrappers - */ - -static void -miSpriteSaveDoomedAreas (pWin, pObscured, dx, dy) - WindowPtr pWin; - RegionPtr pObscured; - int dx, dy; -{ - ScreenPtr pScreen; - miSpriteScreenPtr pScreenPriv; - BoxRec cursorBox; - DeviceIntPtr pDev = inputInfo.pointer; - miCursorInfoPtr pCursorInfo; - - pScreen = pWin->drawable.pScreen; - - SCREEN_PROLOGUE (pScreen, SaveDoomedAreas); - - pScreenPriv = (miSpriteScreenPtr) pScreen->devPrivates[miSpriteScreenIndex].ptr; - - for (pDev = inputInfo.devices; pDev; pDev = pDev->next) - { - if(DevHasCursor(pDev)) - { - pCursorInfo = MISPRITE(pDev); - if (pCursorInfo->isUp && pCursorInfo->pScreen == pScreen) - { - cursorBox = pCursorInfo->saved; - - if (dx || dy) - { - cursorBox.x1 += dx; - cursorBox.y1 += dy; - cursorBox.x2 += dx; - cursorBox.y2 += dy; - } - if (RECT_IN_REGION( pScreen, pObscured, &cursorBox) != rgnOUT) - miSpriteRemoveCursor (pDev, pScreen); - } - - } - } - - (*pScreen->SaveDoomedAreas) (pWin, pObscured, dx, dy); - - SCREEN_EPILOGUE (pScreen, SaveDoomedAreas); -} - -/* * miPointer interface routines */ |