Browse Source

Add debug to window size

tags/v0.6.0
Andrew Belt 7 years ago
parent
commit
8abf90da97
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      src/window.cpp

+ 1
- 0
src/window.cpp View File

@@ -460,6 +460,7 @@ 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);



Loading…
Cancel
Save