https://git.reactos.org/?p=reactos.git;a=commitdiff;h=81aa81e38f00745e581197...
commit 81aa81e38f00745e5811972ab471c2d7cc9763a9 Author: Hervé Poussineau hpoussin@reactos.org AuthorDate: Sun May 8 22:26:22 2022 +0200 Commit: hpoussin 32227662+hpoussin@users.noreply.github.com CommitDate: Sat May 14 21:29:12 2022 +0200
[WIN32SS] Implement display acceleration level 5 (ie no acceleration)
This is a easy as forcing usage of panning driver. --- win32ss/gdi/eng/pdevobj.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/win32ss/gdi/eng/pdevobj.c b/win32ss/gdi/eng/pdevobj.c index 293dae4b967..c8af5c7e9c3 100644 --- a/win32ss/gdi/eng/pdevobj.c +++ b/win32ss/gdi/eng/pdevobj.c @@ -301,7 +301,7 @@ PDEVOBJ_vFilterDriverHooks( if (dwAccelerationLevel >= 5) { /* Disable all display accelerations */ - UNIMPLEMENTED; + /* (nothing to do. Already handled in PDEVOBJ_Create) */ } }
@@ -506,7 +506,8 @@ PDEVOBJ_Create( ppdev->dwAccelerationLevel = dwAccelerationLevel;
/* 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;