1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Repaint scrolled area when smooth scrolling is disabled

When the SW_SMOOTHSCROLL flag is removed in ScrollWindowEx, it needs to be
replaced with SW_ERASE and SW_INVALIDATE to properly repaint the scrolled
portions of the window.

Fixes an issue reported in #16.
This commit is contained in:
narzoul 2017-07-14 11:31:55 +02:00
parent ab7271b986
commit 5668bf7c35

View File

@ -27,7 +27,7 @@ namespace
if (flags & SW_SMOOTHSCROLL)
{
flags = LOWORD(flags ^ SW_SMOOTHSCROLL);
flags = (LOWORD(flags) & ~SW_SMOOTHSCROLL) | SW_INVALIDATE | SW_ERASE;
}
int result = CALL_ORIG_FUNC(ScrollWindowEx)(