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

Function windowSizeCallback

src/window/Window.cpp:130–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129
130static 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
142static void windowMaximizeCallback(GLFWwindow* win, int maximized) {

Callers

nothing calls this directly

Calls 1

VecClass · 0.85

Tested by

no test coverage detected