diff options
author | marha <marha@users.sourceforge.net> | 2010-04-16 15:34:33 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-04-16 15:34:33 +0000 |
commit | 0b8629ada4293370d220bbb7e6c195c711baee7d (patch) | |
tree | a7774b45662db90282ae18b17eb3d8f77d8c746d /xorg-server/mi/misprite.c | |
parent | 8654ee514b4d79feec936501717a06892090d3b7 (diff) | |
download | vcxsrv-0b8629ada4293370d220bbb7e6c195c711baee7d.tar.gz vcxsrv-0b8629ada4293370d220bbb7e6c195c711baee7d.tar.bz2 vcxsrv-0b8629ada4293370d220bbb7e6c195c711baee7d.zip |
svn merge -r534:HEAD ^/branches/released .
Diffstat (limited to 'xorg-server/mi/misprite.c')
-rw-r--r-- | xorg-server/mi/misprite.c | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/xorg-server/mi/misprite.c b/xorg-server/mi/misprite.c index 714c42944..43c090889 100644 --- a/xorg-server/mi/misprite.c +++ b/xorg-server/mi/misprite.c @@ -768,10 +768,8 @@ miSpriteRealizeCursor (DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor) pScreenPriv = dixLookupPrivate(&pScreen->devPrivates, miSpriteScreenKey); if (!IsMaster(pDev) && !pDev->u.master) - { - ErrorF("[mi] miSpriteRealizeCursor called for floating device.\n"); return FALSE; - } + pCursorInfo = MISPRITE(pDev); if (pCursor == pCursorInfo->pCursor) @@ -799,10 +797,8 @@ miSpriteSetCursor (DeviceIntPtr pDev, ScreenPtr pScreen, pScreenPriv = dixLookupPrivate(&pScreen->devPrivates, miSpriteScreenKey); if (!IsMaster(pDev) && !pDev->u.master) - { - ErrorF("[mi] miSpriteSetCursor called for floating device.\n"); return; - } + pPointer = MISPRITE(pDev); if (!pCursor) @@ -916,10 +912,8 @@ miSpriteMoveCursor (DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y) pScreenPriv = dixLookupPrivate(&pScreen->devPrivates, miSpriteScreenKey); if (!IsMaster(pDev) && !pDev->u.master) - { - ErrorF("[mi] miSpriteMoveCursor called for floating device.\n"); return; - } + pCursor = MISPRITE(pDev)->pCursor; miSpriteSetCursor (pDev, pScreen, pCursor, x, y); @@ -984,10 +978,8 @@ miSpriteRemoveCursor (DeviceIntPtr pDev, ScreenPtr pScreen) if (!IsMaster(pDev) && !pDev->u.master) - { - ErrorF("[mi] miSpriteRemoveCursor called for floating device.\n"); return; - } + DamageDrawInternal (pScreen, TRUE); pScreenPriv = dixLookupPrivate(&pScreen->devPrivates, miSpriteScreenKey); pCursorInfo = MISPRITE(pDev); @@ -1024,10 +1016,8 @@ miSpriteSaveUnderCursor(DeviceIntPtr pDev, ScreenPtr pScreen) miCursorInfoPtr pCursorInfo; if (!IsMaster(pDev) && !pDev->u.master) - { - ErrorF("[mi] miSpriteSaveUnderCursor called for floating device.\n"); return; - } + DamageDrawInternal (pScreen, TRUE); pScreenPriv = dixLookupPrivate(&pScreen->devPrivates, miSpriteScreenKey); pCursorInfo = MISPRITE(pDev); @@ -1067,10 +1057,7 @@ miSpriteRestoreCursor (DeviceIntPtr pDev, ScreenPtr pScreen) miCursorInfoPtr pCursorInfo; if (!IsMaster(pDev) && !pDev->u.master) - { - ErrorF("[mi] miSpriteRestoreCursor called for floating device.\n"); return; - } DamageDrawInternal (pScreen, TRUE); pScreenPriv = dixLookupPrivate(&pScreen->devPrivates, miSpriteScreenKey); @@ -1111,10 +1098,8 @@ miSpriteComputeSaved (DeviceIntPtr pDev, ScreenPtr pScreen) miCursorInfoPtr pCursorInfo; if (!IsMaster(pDev) && !pDev->u.master) - { - ErrorF("[mi] miSpriteComputeSaved called for floating device.\n"); return; - } + pScreenPriv = dixLookupPrivate(&pScreen->devPrivates, miSpriteScreenKey); pCursorInfo = MISPRITE(pDev); |