- Use DIB_GetDIBWidthBytes and BitsPerFormat instead of switch
- Add SPS_CHANGE flag when calling IntEngSetPointerShape
- Fixes VMWare Driver mouse pointer regression

svn path=/trunk/; revision=42489
This commit is contained in:
Timo Kreuzer 2009-08-08 02:42:41 +00:00
parent 257366ffa4
commit c136124b2f

View file

@ -382,30 +382,8 @@ EngSetPointerShape(
pgp->HotSpot.y = yHot;
/* Calculate lDelta for our surfaces. */
switch (pso->iBitmapFormat)
{
case BMF_1BPP:
lDelta = pgp->Size.cx >> 3;
break;
case BMF_4BPP:
lDelta = pgp->Size.cx >> 1;
break;
case BMF_8BPP:
lDelta = pgp->Size.cx;
break;
case BMF_16BPP:
lDelta = pgp->Size.cx << 1;
break;
case BMF_24BPP:
lDelta = pgp->Size.cx * 3;
break;
case BMF_32BPP:
lDelta = pgp->Size.cx << 2;
break;
default:
lDelta = 0;
break;
}
lDelta = DIB_GetDIBWidthBytes(pgp->Size.cx,
BitsPerFormat(pso->iBitmapFormat));
rcl.left = 0;
rcl.top = 0;
@ -690,7 +668,7 @@ GreSetPointerShape(
x,
y,
&pdc->ppdev->Pointer.Exclude,
fl);
fl | SPS_CHANGE);
/* Cleanup */
if (hbmColor)