mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-14 22:03:27 +01:00
Revert "tweak BeginPaint hook"
This reverts commit 68d6ec1c6a525e42baf160b4b81ea7cf293dd14e.
This commit is contained in:
parent
68d6ec1c6a
commit
da2430b7d0
@ -921,10 +921,7 @@ HDC WINAPI fake_BeginPaint(HWND hWnd, LPPAINTSTRUCT lpPaint)
|
||||
{
|
||||
HDC result = real_BeginPaint(hWnd, lpPaint);
|
||||
|
||||
RECT size = { 0, 0, g_ddraw.width, g_ddraw.height };
|
||||
real_GetClientRect(hWnd, &size);
|
||||
|
||||
if (result && (g_ddraw.width != size.right || g_ddraw.height != size.bottom))
|
||||
if (result)
|
||||
{
|
||||
lpPaint->rcPaint.left = 0;
|
||||
lpPaint->rcPaint.top = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user