Skip to content

Commit

Permalink
Fixes windowed mode with some Direct3D9 games
Browse files Browse the repository at this point in the history
Fixes #324
  • Loading branch information
elishacloud committed Dec 11, 2024
1 parent bb25e7f commit 4911658
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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 7373
#define BUILD_NUMBER 7374
12 changes: 10 additions & 2 deletions GDI/WndProc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,18 @@ LRESULT CALLBACK WndProc::Handler(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lPa
switch (Msg)
{
case WM_NCACTIVATE:
return TRUE;
if (pDataStruct->IsDirectDraw)
{
return TRUE;
}
break;
case WM_ACTIVATE:
case WM_ACTIVATEAPP:
return NULL;
if (pDataStruct->IsDirectDraw)
{
return NULL;
}
break;
case WM_STYLECHANGING:
case WM_STYLECHANGED:
case WM_ENTERSIZEMOVE:
Expand Down

0 comments on commit 4911658

Please sign in to comment.