Skip to content

Commit

Permalink
Merge pull request #84504 from jitspoe/master.pr_fullscreen_to_window…
Browse files Browse the repository at this point in the history
…ed_fix

Fix bug where maximized->fullscreen->windowed mode stays maximized.
  • Loading branch information
akien-mga committed Nov 9, 2023
2 parents ce53362 + 7918e2b commit 0e8781e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion platform/windows/display_server_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1692,7 +1692,9 @@ void DisplayServerWindows::window_set_mode(WindowMode p_mode, WindowID p_window)
SystemParametersInfoA(SPI_SETMOUSETRAILS, restore_mouse_trails, 0, 0);
restore_mouse_trails = 0;
}
} else if (p_mode == WINDOW_MODE_WINDOWED) {
}

if (p_mode == WINDOW_MODE_WINDOWED) {
ShowWindow(wd.hWnd, SW_RESTORE);
wd.maximized = false;
wd.minimized = false;
Expand Down

0 comments on commit 0e8781e

Please sign in to comment.