MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / applyFullscreen

Method applyFullscreen

App/WindowController.cpp:212–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210}
211
212void 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
226void WindowController::init(GLFWwindow* window, const UserSettings::WindowState& initialWindowState) {
227 WindowController::window = window;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected