From d33bbd1c7e628cf4d1b1e6373dc2506cdb5d0ce1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 18 Dec 2019 18:44:15 +0100 Subject: [PATCH] Platform: apparently I forgot to finish this sentence a year ago. --- src/Magnum/Platform/EmscriptenApplication.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/EmscriptenApplication.cpp b/src/Magnum/Platform/EmscriptenApplication.cpp index ac7df2d43..2d6cf886d 100644 --- a/src/Magnum/Platform/EmscriptenApplication.cpp +++ b/src/Magnum/Platform/EmscriptenApplication.cpp @@ -251,7 +251,8 @@ Vector2 EmscriptenApplication::dpiScaling(const Configuration& configuration) co However, in order to actually calculate the framebuffer size we need to query the device pixel ratio. That's done in tryCreate() below, here it is returning 1.0 to be consistent with behavior on other platforms where - it's either windowSize == 1 */ + it's either windowSize == framebufferSize and dpiScaling of any value, + or windowSize != framebufferSize and dpiScaling == 1. */ return Vector2{1.0f}; }