MCPcopy Create free account
hub / github.com/VCVRack/Rack / setFullScreen

Method setFullScreen

src/window/Window.cpp:717–728  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

715
716
717void Window::setFullScreen(bool fullScreen) {
718 if (!fullScreen) {
719 glfwSetWindowMonitor(win, NULL, internal->lastWindowX, internal->lastWindowY, internal->lastWindowWidth, internal->lastWindowHeight, GLFW_DONT_CARE);
720 }
721 else {
722 glfwGetWindowPos(win, &internal->lastWindowX, &internal->lastWindowY);
723 glfwGetWindowSize(win, &internal->lastWindowWidth, &internal->lastWindowHeight);
724 GLFWmonitor* monitor = glfwGetPrimaryMonitor();
725 const GLFWvidmode* mode = glfwGetVideoMode(monitor);
726 glfwSetWindowMonitor(win, monitor, 0, 0, mode->width, mode->height, mode->refreshRate);
727 }
728}
729
730
731bool Window::isFullScreen() {

Callers 2

onHoverKeyMethod · 0.80
onActionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected