Browse Source

Fix UI DPI formula

tags/v0.6.0
Andrew Belt 6 years ago
parent
commit
4f9d735a79
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      src/window.cpp

+ 1
- 2
src/window.cpp View File

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


Loading…
Cancel
Save