mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 21:42:57 +00:00
Fixing a small bug for hide mouse. Save the current surface under the mouse. But do not blt the mouse pointer. it take care of small glict I have seen in winqauke.
svn path=/trunk/; revision=20510
This commit is contained in:
parent
2dc2025c31
commit
541e05f9c5
1 changed files with 10 additions and 10 deletions
|
@ -211,12 +211,6 @@ IntShowMousePointer(GDIDEVICE *ppdev, SURFOBJ *DestSurface)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pgp->ShowPointer < 0)
|
|
||||||
{
|
|
||||||
return ;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
pgp->Enabled = TRUE;
|
pgp->Enabled = TRUE;
|
||||||
|
|
||||||
pt.x = pgp->Pos.x - pgp->HotSpot.x;
|
pt.x = pgp->Pos.x - pgp->HotSpot.x;
|
||||||
|
@ -281,14 +275,19 @@ IntShowMousePointer(GDIDEVICE *ppdev, SURFOBJ *DestSurface)
|
||||||
{
|
{
|
||||||
if((ColorSurf = EngLockSurface(pgp->ColorSurface)))
|
if((ColorSurf = EngLockSurface(pgp->ColorSurface)))
|
||||||
{
|
{
|
||||||
IntEngBitBltEx(DestSurface, ColorSurf, MaskSurf, NULL,
|
if (pgp->ShowPointer >= 0)
|
||||||
|
{
|
||||||
|
IntEngBitBltEx(DestSurface, ColorSurf, MaskSurf, NULL,
|
||||||
pgp->XlateObject, &DestRect, &SrcPoint, &SrcPoint,
|
pgp->XlateObject, &DestRect, &SrcPoint, &SrcPoint,
|
||||||
NULL, NULL, R4_MASK, FALSE);
|
NULL, NULL, R4_MASK, FALSE);
|
||||||
EngUnlockSurface(ColorSurf);
|
EngUnlockSurface(ColorSurf);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (pgp->ShowPointer >= 0)
|
||||||
|
{
|
||||||
IntEngBitBltEx(DestSurface, MaskSurf, NULL, NULL, pgp->XlateObject,
|
IntEngBitBltEx(DestSurface, MaskSurf, NULL, NULL, pgp->XlateObject,
|
||||||
&DestRect, &SrcPoint, NULL, NULL, NULL,
|
&DestRect, &SrcPoint, NULL, NULL, NULL,
|
||||||
ROP3_TO_ROP4(SRCAND), FALSE);
|
ROP3_TO_ROP4(SRCAND), FALSE);
|
||||||
|
@ -296,6 +295,7 @@ IntShowMousePointer(GDIDEVICE *ppdev, SURFOBJ *DestSurface)
|
||||||
IntEngBitBltEx(DestSurface, MaskSurf, NULL, NULL, pgp->XlateObject,
|
IntEngBitBltEx(DestSurface, MaskSurf, NULL, NULL, pgp->XlateObject,
|
||||||
&DestRect, &SrcPoint, NULL, NULL, NULL,
|
&DestRect, &SrcPoint, NULL, NULL, NULL,
|
||||||
ROP3_TO_ROP4(SRCINVERT), FALSE);
|
ROP3_TO_ROP4(SRCINVERT), FALSE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
EngUnlockSurface(MaskSurf);
|
EngUnlockSurface(MaskSurf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue