summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;