| 210 | } |
| 211 | |
| 212 | void WindowController::applyFullscreen(GLFWmonitor* monitor) { |
| 213 | if (!window || !monitor) { |
| 214 | return; |
| 215 | } |
| 216 | |
| 217 | const GLFWvidmode* mode = glfwGetVideoMode(monitor); |
| 218 | if (!mode) { |
| 219 | return; |
| 220 | } |
| 221 | |
| 222 | glfwSetWindowMonitor(window, monitor, 0, 0, mode->width, mode->height, mode->refreshRate); |
| 223 | glfwFocusWindow(window); |
| 224 | } |
| 225 | |
| 226 | void WindowController::init(GLFWwindow* window, const UserSettings::WindowState& initialWindowState) { |
| 227 | WindowController::window = window; |
nothing calls this directly
no outgoing calls
no test coverage detected