[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:
Hervé Poussineau 2022-05-14 15:41:44 +02:00 committed by hpoussin
parent 57c07ba117
commit 83d2c8ce33

View file

@ -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 */