diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-18 12:54:14 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-02-18 12:54:14 +0100 |
| commit | e7be11bc19f9880f99a944debc2786208bf1483d (patch) | |
| tree | 2359f38622f8274ffe1d07418e9beaa96b76b6d4 | |
| parent | a4e8be46408c9bcdc8d1fee604b5af4779bbd64b (diff) | |
fix dpi scaling
| -rw-r--r-- | main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; |
