[WIN32SS] Implement display acceleration level 5 (ie no acceleration)

This is a easy as forcing usage of panning driver.
This commit is contained in:
Hervé Poussineau 2022-05-08 22:26:22 +02:00 committed by hpoussin
parent 4e0f2fc01c
commit 81aa81e38f

View file

@ -301,7 +301,7 @@ PDEVOBJ_vFilterDriverHooks(
if (dwAccelerationLevel >= 5) if (dwAccelerationLevel >= 5)
{ {
/* Disable all display accelerations */ /* Disable all display accelerations */
UNIMPLEMENTED; /* (nothing to do. Already handled in PDEVOBJ_Create) */
} }
} }
@ -506,7 +506,8 @@ PDEVOBJ_Create(
ppdev->dwAccelerationLevel = dwAccelerationLevel; ppdev->dwAccelerationLevel = dwAccelerationLevel;
/* Copy the function table */ /* Copy the function table */
if (pdm->dmFields & (DM_PANNINGWIDTH | DM_PANNINGHEIGHT)) if ((ldevtype == LDEV_DEVICE_DISPLAY && dwAccelerationLevel >= 5) ||
pdm->dmFields & (DM_PANNINGWIDTH | DM_PANNINGHEIGHT))
{ {
ULONG i; ULONG i;