Skip to content

Commit

Permalink
Common: Ensure window size is equal to the given user resolution in b…
Browse files Browse the repository at this point in the history
…orderless
  • Loading branch information
julianxhokaxhiu committed Aug 19, 2022
1 parent 545bb5c commit b343e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ void toggle_borderless() {

set_window_shadow();

SetWindowPos(gameHwnd, HWND_TOP, 0, 0, gameWindowWidth, gameWindowHeight, SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
SetWindowPos(gameHwnd, HWND_TOP, 0, 0, borderless ? window_size_x : gameWindowWidth, borderless ? window_size_y : gameWindowHeight, SWP_NOMOVE | SWP_NOZORDER | SWP_FRAMECHANGED);
ShowWindow(gameHwnd, SW_SHOW);
}

Expand Down

0 comments on commit b343e36

Please sign in to comment.