mirror of
https://github.com/reactos/reactos.git
synced 2026-05-30 23:33:24 +08:00
[WIN32SS] mouse: call panning driver when moving pointer
Yes, if a driver supports both hardware pointers and panning, it will be called twice on each move.
This commit is contained in:
committed by
hpoussin
parent
57c07ba117
commit
83d2c8ce33
@@ -820,6 +820,11 @@ GreMovePointer(
|
||||
pdc->ppdev->pfnMovePointer(pso, x, y, prcl);
|
||||
else if (pdc->ppdev->flFlags & PDEV_SOFTWARE_POINTER)
|
||||
EngMovePointer(pso, x, y, prcl);
|
||||
|
||||
/* If panning device, and we're not hiding the cursor, notify cursor's current position.
|
||||
* (driver may already have been called if it also supports hardware pointers) */
|
||||
if (pdc->ppdev->devinfo.flGraphicsCaps & GCAPS_PANNING && y >= 0)
|
||||
pdc->ppdev->pfnMovePointer(pso, x, y - pso->sizlBitmap.cy, NULL);
|
||||
}
|
||||
|
||||
/* Release PDEV lock */
|
||||
|
||||
Reference in New Issue
Block a user