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

Method windowSizeCallback

App/WindowController.cpp:145–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143}
144
145void WindowController::windowSizeCallback(GLFWwindow* callbackWindow, int width, int height) {
146 if (callbackWindow != window || isFullscreen || windowedWasMaximized || width <= 0 || height <= 0) {
147 return;
148 }
149
150 windowedWidth = width;
151 windowedHeight = height;
152 windowedMonitorIndex = monitorIndex(currentMonitor());
153}
154
155void WindowController::windowMaximizeCallback(GLFWwindow* callbackWindow, int maximized) {
156 if (callbackWindow != window || isFullscreen) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected