Browse Source

Platform: apparently I forgot to finish this sentence a year ago.

pull/405/head
Vladimír Vondruš 6 years ago
parent
commit
d33bbd1c7e
  1. 3
      src/Magnum/Platform/EmscriptenApplication.cpp

3
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};
}

Loading…
Cancel
Save