summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-02-18 12:54:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-02-18 12:54:14 +0100
commite7be11bc19f9880f99a944debc2786208bf1483d (patch)
tree2359f38622f8274ffe1d07418e9beaa96b76b6d4
parenta4e8be46408c9bcdc8d1fee604b5af4779bbd64b (diff)
fix dpi scaling
-rw-r--r--main.cpp4
1 files changed, 3 insertions, 1 deletions
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;