Skip to content

Commit

Permalink
Merge branch 'fullscreen'
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed May 16, 2024
2 parents 8f3ac7f + 1f9490e commit 477603b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ void ExecuteCommand(int id, HWND hwnd = 0) {

bool IsFullScreen(HWND hwnd) {
RECT windowRect;
return (GetClientRect(hwnd, &windowRect) &&
return (GetWindowRect(hwnd, &windowRect) &&
(windowRect.left == 0 && windowRect.top == 0 &&
windowRect.right == GetSystemMetrics(SM_CXSCREEN) &&
windowRect.bottom == GetSystemMetrics(SM_CYSCREEN)));
Expand Down

0 comments on commit 477603b

Please sign in to comment.