Skip to content

Commit

Permalink
Revert: Better handling of sysmenu
Browse files Browse the repository at this point in the history
  • Loading branch information
elishacloud committed Aug 16, 2024
1 parent bc565e6 commit e3e6993
Show file tree
Hide file tree
Showing 2 changed files with 3 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 7094
#define BUILD_NUMBER 7095
3 changes: 2 additions & 1 deletion d3d9/IDirect3D9Ex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ void AdjustWindow(HWND MainhWnd, LONG displayWidth, LONG displayHeight)
}
else if (Config.FullscreenWindowMode)
{
lStyle &= ~WS_OVERLAPPEDWINDOW | WS_SYSMENU; // Don't remove the menu
lStyle &= ~WS_OVERLAPPEDWINDOW;
}

// Set window style
Expand All @@ -641,6 +641,7 @@ void AdjustWindow(HWND MainhWnd, LONG displayWidth, LONG displayHeight)
// Get new window rect
Rect = { 0, 0, displayWidth, displayHeight };
AdjustWindowRectEx(&Rect, GetWindowLong(MainhWnd, GWL_STYLE), GetMenu(MainhWnd) != NULL, lExStyle);
Rect = { 0, 0, Rect.right - Rect.left, Rect.bottom - Rect.top };

// Get upper left window position
bool SetWindowPositionFlag = Config.FullscreenWindowMode;
Expand Down

0 comments on commit e3e6993

Please sign in to comment.