Skip to content

Commit

Permalink
Don't call RedrawWindow for fullscreen games
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Nov 1, 2024
1 parent 91bb7e4 commit 532fc46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dllmain/BuildNo.rc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define BUILD_NUMBER 7248
#define BUILD_NUMBER 7249
2 changes: 1 addition & 1 deletion ddraw/IDirectDrawX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4763,7 +4763,7 @@ HRESULT m_IDirectDrawX::Present(RECT* pSourceRect, RECT* pDestRect)
// Redraw window if it has moved from its last location
HWND hWnd = GetHwnd();
RECT ClientRect = {};
if ((presParams.Windowed || Config.EnableWindowMode) && !IsIconic(hWnd) && GetWindowRect(hWnd, &ClientRect) && LastWindowLocation.right > 0 && LastWindowLocation.bottom > 0)
if (presParams.Windowed && !ExclusiveMode && !IsIconic(hWnd) && GetWindowRect(hWnd, &ClientRect) && LastWindowLocation.right > 0 && LastWindowLocation.bottom > 0)
{
if (ClientRect.left != LastWindowLocation.left || ClientRect.top != LastWindowLocation.top ||
ClientRect.right != LastWindowLocation.right || ClientRect.bottom != LastWindowLocation.bottom)
Expand Down

0 comments on commit 532fc46

Please sign in to comment.