| 128 | |
| 129 | |
| 130 | static void windowSizeCallback(GLFWwindow* win, int width, int height) { |
| 131 | if (glfwGetWindowAttrib(win, GLFW_MAXIMIZED)) |
| 132 | return; |
| 133 | if (glfwGetWindowAttrib(win, GLFW_ICONIFIED)) |
| 134 | return; |
| 135 | if (glfwGetWindowMonitor(win)) |
| 136 | return; |
| 137 | settings::windowSize = math::Vec(width, height); |
| 138 | // DEBUG("windowSizeCallback %d %d", width, height); |
| 139 | } |
| 140 | |
| 141 | |
| 142 | static void windowMaximizeCallback(GLFWwindow* win, int maximized) { |