|
|
@@ -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(); |
|
|
|