mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 20:56:04 +00:00
[win32k]
- 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:
parent
257366ffa4
commit
c136124b2f
1 changed files with 3 additions and 25 deletions
|
@ -382,30 +382,8 @@ EngSetPointerShape(
|
||||||
pgp->HotSpot.y = yHot;
|
pgp->HotSpot.y = yHot;
|
||||||
|
|
||||||
/* Calculate lDelta for our surfaces. */
|
/* Calculate lDelta for our surfaces. */
|
||||||
switch (pso->iBitmapFormat)
|
lDelta = DIB_GetDIBWidthBytes(pgp->Size.cx,
|
||||||
{
|
BitsPerFormat(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;
|
|
||||||
}
|
|
||||||
|
|
||||||
rcl.left = 0;
|
rcl.left = 0;
|
||||||
rcl.top = 0;
|
rcl.top = 0;
|
||||||
|
@ -690,7 +668,7 @@ GreSetPointerShape(
|
||||||
x,
|
x,
|
||||||
y,
|
y,
|
||||||
&pdc->ppdev->Pointer.Exclude,
|
&pdc->ppdev->Pointer.Exclude,
|
||||||
fl);
|
fl | SPS_CHANGE);
|
||||||
|
|
||||||
/* Cleanup */
|
/* Cleanup */
|
||||||
if (hbmColor)
|
if (hbmColor)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue