From 82ca14ded88a842547fa12b51283dcc8e8e61e58 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 6 Mar 2018 15:41:23 -0500 Subject: [PATCH] Fix UI DPI formula --- src/window.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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();