From e1e4dbd4c42a1149a6e6e39d5ac2c4f0a4901572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 26 Sep 2018 22:32:44 +0200 Subject: [PATCH] Platform: properly fall back to physical DPI scaling. Not sure why I did it this way. For sure wasn't like that in the initial implementation. --- src/Magnum/Platform/GlfwApplication.cpp | 3 +-- src/Magnum/Platform/Sdl2Application.cpp | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index ca3e57fb6..952c34695 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -159,8 +159,7 @@ Vector2 GlfwApplication::dpiScaling(const Configuration& configuration) const { /* Otherwise ¯\_(ツ)_/¯ */ #else - Debug{verbose} << "Platform::GlfwApplication: sorry, virtual DPI scaling not implemented on this platform yet"; - return Vector2{1.0f}; + Debug{verbose} << "Platform::GlfwApplication: sorry, virtual DPI scaling not implemented on this platform yet, falling back to physical DPI scaling"; #endif } diff --git a/src/Magnum/Platform/Sdl2Application.cpp b/src/Magnum/Platform/Sdl2Application.cpp index 6169535af..d7d59a497 100644 --- a/src/Magnum/Platform/Sdl2Application.cpp +++ b/src/Magnum/Platform/Sdl2Application.cpp @@ -180,8 +180,7 @@ Vector2 Sdl2Application::dpiScaling(const Configuration& configuration) const { /* Otherwise ¯\_(ツ)_/¯ */ #else - Debug{verbose} << "Platform::Sdl2Application: sorry, virtual DPI scaling not implemented on this platform yet"; - return Vector2{1.0f}; + Debug{verbose} << "Platform::Sdl2Application: sorry, virtual DPI scaling not implemented on this platform yet, falling back to physical DPI scaling"; #endif } #endif