Skip to content

Commit

Permalink
Merge pull request #76 from hotstreams/fix/windowed-mode-switch
Browse files Browse the repository at this point in the history
fix windowed mode switch
  • Loading branch information
hotstreams authored Sep 16, 2024
2 parents 80d5250 + d351ad0 commit e2cade4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/limitless/core/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void Context::setFullscreen(bool value) noexcept {

const auto* mode = glfwGetVideoMode(monitor.value());
monitor = std::nullopt;
glfwSetWindowMonitor(window, monitor.value(), 0, 0, mode->width, mode->height, mode->refreshRate);
glfwSetWindowMonitor(window, nullptr, 0, 0, mode->width, mode->height, mode->refreshRate);
}
}

Expand Down

0 comments on commit e2cade4

Please sign in to comment.