From acd718d7b9b8e7e921c47a9a03e87f962abcf663 Mon Sep 17 00:00:00 2001 From: midzer Date: Sat, 27 Jul 2024 12:03:42 +0200 Subject: [PATCH] allow HIGHDPI window --- system_sdl2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system_sdl2.cpp b/system_sdl2.cpp index 1471c70..3b4546f 100644 --- a/system_sdl2.cpp +++ b/system_sdl2.cpp @@ -876,7 +876,8 @@ void System_SDL2::prepareScaledGfx(const char *caption, bool fullscreen, bool wi } const int windowW = widescreen ? h * 16 / 9 : w; const int windowH = h; - const int flags = fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE; + int flags = fullscreen ? SDL_WINDOW_FULLSCREEN_DESKTOP : SDL_WINDOW_RESIZABLE; + flags |= SDL_WINDOW_ALLOW_HIGHDPI; _window = SDL_CreateWindow(caption, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, windowW, windowH, flags); SDL_Surface *icon = SDL_LoadBMP(kIconBmp); if (icon) {