| 715 | |
| 716 | |
| 717 | void 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 | |
| 731 | bool Window::isFullScreen() { |
no outgoing calls
no test coverage detected