From e7be11bc19f9880f99a944debc2786208bf1483d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 18 Feb 2022 12:54:14 +0100 Subject: fix dpi scaling --- main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.cpp b/main.cpp index 6c190d41..31d1ca88 100644 --- a/main.cpp +++ b/main.cpp @@ -40,10 +40,12 @@ struct application final : Platform::Application Matrix4x4 make_projection(Vector3 offset); }; +using dpi_policy = Platform::Implementation::Sdl2DpiScalingPolicy; + application::application(const Arguments& arguments): Platform::Application{arguments, Configuration{} .setTitle("Test") - .setSize({640, 480})} + .setSize({640, 480}, dpi_policy::Physical)} { struct QuadVertex { Vector3 position; -- cgit v1.2.3