From a69e9bc60fa4e5f1464e3ff1beff4da484022093 Mon Sep 17 00:00:00 2001 From: Micah Acinapura Date: Fri, 31 Jan 2020 10:15:48 -0500 Subject: [PATCH] added loading screen fix for hdpi --- src/rendering/loadingscreen.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rendering/loadingscreen.cpp b/src/rendering/loadingscreen.cpp index 6ef24cdb46..959472f5d7 100644 --- a/src/rendering/loadingscreen.cpp +++ b/src/rendering/loadingscreen.cpp @@ -159,7 +159,7 @@ void LoadingScreen::render() { const glm::vec2 dpiScaling = global::windowDelegate.dpiScaling(); const glm::ivec2 res = - glm::vec2(global::windowDelegate.currentSubwindowSize()) / dpiScaling; + glm::vec2(global::windowDelegate.currentSubwindowSize()) * dpiScaling; float screenAspectRatio = static_cast(res.x) / static_cast(res.y); @@ -310,7 +310,6 @@ void LoadingScreen::render() { ProgressbarCenter.y + progressbarSize.y }; - for (Item& item : _items) { if (!item.hasLocation) { // Compute a new location