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

Fixed painting of owner-drawn buttons

Fixes invisible disabled buttons in Gangsters: Organized Crime.
See issue #95.
This commit is contained in:
narzoul 2021-05-01 15:02:48 +02:00
parent 0ada5acea7
commit af6cafd65e

View File

@ -66,7 +66,7 @@ namespace
case BM_SETSTATE:
{
LRESULT result = CallWindowProc(origWndProc, hwnd, msg, wParam, lParam);
RedrawWindow(hwnd, nullptr, nullptr, RDW_INVALIDATE | RDW_UPDATENOW);
InvalidateRect(hwnd, nullptr, TRUE);
return result;
}