mirror of
https://github.com/reactos/reactos.git
synced 2025-08-10 18:45:39 +00:00
[WIN32SS:FRAMEBUF] Improve/Fix DrvSetPointerShape(), from r7864 (#457)
- Fix a copypasta. - Remove dead code. Thanks to mudhead, who spotted most of these. NB: This EXPERIMENTAL_MOUSE_CURSOR_SUPPORT code isn't compiled by default since r7865. CORE-14511
This commit is contained in:
parent
f745a97bfe
commit
a0b5b47352
1 changed files with 3 additions and 12 deletions
|
@ -220,11 +220,11 @@ DrvSetPointerShape(
|
||||||
/* FIXME: Is this really needed? */
|
/* FIXME: Is this really needed? */
|
||||||
TempSurfObj = EngLockSurface(ppdev->PointerColorSurface);
|
TempSurfObj = EngLockSurface(ppdev->PointerColorSurface);
|
||||||
EngFreeMem(TempSurfObj->pvBits);
|
EngFreeMem(TempSurfObj->pvBits);
|
||||||
TempSurfObj->pvBits = 0;
|
TempSurfObj->pvBits = NULL;
|
||||||
EngUnlockSurface(TempSurfObj);
|
EngUnlockSurface(TempSurfObj);
|
||||||
|
|
||||||
EngDeleteSurface(ppdev->PointerColorSurface);
|
EngDeleteSurface(ppdev->PointerColorSurface);
|
||||||
ppdev->PointerMaskSurface = NULL;
|
ppdev->PointerColorSurface = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ppdev->PointerMaskSurface != NULL)
|
if (ppdev->PointerMaskSurface != NULL)
|
||||||
|
@ -232,7 +232,7 @@ DrvSetPointerShape(
|
||||||
/* FIXME: Is this really needed? */
|
/* FIXME: Is this really needed? */
|
||||||
TempSurfObj = EngLockSurface(ppdev->PointerMaskSurface);
|
TempSurfObj = EngLockSurface(ppdev->PointerMaskSurface);
|
||||||
EngFreeMem(TempSurfObj->pvBits);
|
EngFreeMem(TempSurfObj->pvBits);
|
||||||
TempSurfObj->pvBits = 0;
|
TempSurfObj->pvBits = NULL;
|
||||||
EngUnlockSurface(TempSurfObj);
|
EngUnlockSurface(TempSurfObj);
|
||||||
|
|
||||||
EngDeleteSurface(ppdev->PointerMaskSurface);
|
EngDeleteSurface(ppdev->PointerMaskSurface);
|
||||||
|
@ -276,12 +276,7 @@ DrvSetPointerShape(
|
||||||
ppdev->PointerColorSurface = (HSURF)EngCreateBitmap(Size,
|
ppdev->PointerColorSurface = (HSURF)EngCreateBitmap(Size,
|
||||||
psoColor->lDelta, psoColor->iBitmapFormat, 0, Bits);
|
psoColor->lDelta, psoColor->iBitmapFormat, 0, Bits);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ppdev->PointerColorSurface = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (psoMask != NULL)
|
|
||||||
{
|
{
|
||||||
SIZEL Size;
|
SIZEL Size;
|
||||||
PBYTE Bits;
|
PBYTE Bits;
|
||||||
|
@ -294,10 +289,6 @@ DrvSetPointerShape(
|
||||||
ppdev->PointerMaskSurface = (HSURF)EngCreateBitmap(Size,
|
ppdev->PointerMaskSurface = (HSURF)EngCreateBitmap(Size,
|
||||||
psoMask->lDelta, psoMask->iBitmapFormat, 0, Bits);
|
psoMask->lDelta, psoMask->iBitmapFormat, 0, Bits);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
ppdev->PointerMaskSurface = NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create surface for saving the pixels under the cursor.
|
* Create surface for saving the pixels under the cursor.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue