From a47d607a8dccbbbe709b07622a0d1a3453063d20 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sun, 16 Jun 2024 11:19:54 +0200 Subject: [PATCH] enable dpi/display scaling/display density awareness --- src/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 7803bd1b..a4769be4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,7 @@ #include "./sys_check.hpp" #include "./start_screen.hpp" +#include "SDL3/SDL_video.h" #include #include @@ -51,7 +52,7 @@ int main(int argc, char** argv) { // more RAII std::unique_ptr window { - SDL_CreateWindow("tomato", 1280, 720, SDL_WINDOW_RESIZABLE), + SDL_CreateWindow("tomato", 1280, 720, SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIGH_PIXEL_DENSITY), &SDL_DestroyWindow };