diff --git a/src/window.cpp b/src/window.cpp index bd3eaa10..47f4b45e 100644 --- a/src/window.cpp +++ b/src/window.cpp @@ -460,9 +460,8 @@ void windowRun() { int windowWidth, windowHeight; glfwGetWindowSize(gWindow, &windowWidth, &windowHeight); gWindowRatio = (float)width / windowWidth; - debug("%d %d %f %f", windowWidth, windowHeight, gWindowRatio, gPixelRatio); - gScene->box.size = Vec(windowWidth, windowHeight); + gScene->box.size = Vec(width, height).div(gPixelRatio); // Step scene gScene->step();