Skip to content

Commit

Permalink
Revert "tweak BeginPaint hook"
Browse files Browse the repository at this point in the history
This reverts commit 68d6ec1.
  • Loading branch information
FunkyFr3sh committed Dec 30, 2024
1 parent 68d6ec1 commit da2430b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/winapi_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit da2430b

Please sign in to comment.