Skip to content

Commit

Permalink
fix fullscreen when maximized
Browse files Browse the repository at this point in the history
  • Loading branch information
Qendolin committed Jun 16, 2024
1 parent 300cf11 commit 4eab59c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,8 @@ void Game::processInput_() {
if (input->isKeyPress(GLFW_KEY_F11)) {
if (glfwGetWindowAttrib(window, GLFW_DECORATED) == GLFW_TRUE) {
glfwSetWindowAttrib(window, GLFW_DECORATED, GLFW_FALSE);
if (glfwGetWindowAttrib(window, GLFW_MAXIMIZED) == GLFW_TRUE)
glfwRestoreWindow(window);
glfwMaximizeWindow(window);
} else {
glfwRestoreWindow(window);
Expand Down

0 comments on commit 4eab59c

Please sign in to comment.