added loading screen fix for hdpi

This commit is contained in:
Micah Acinapura
2020-01-31 10:15:48 -05:00
parent 723e7e220e
commit a69e9bc60f

View File

@@ -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<float>(res.x) / static_cast<float>(res.y);
@@ -310,7 +310,6 @@ void LoadingScreen::render() {
ProgressbarCenter.y + progressbarSize.y
};
for (Item& item : _items) {
if (!item.hasLocation) {
// Compute a new location