From 0f90010b1d1c8b733c9c021eb41e51c239d8c47b Mon Sep 17 00:00:00 2001 From: midzer Date: Tue, 30 Jul 2024 11:07:13 +0200 Subject: [PATCH] allow HIGHDPI window --- src/sdl20compat.inc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl20compat.inc.c b/src/sdl20compat.inc.c index 33bfcea..f8eb116 100644 --- a/src/sdl20compat.inc.c +++ b/src/sdl20compat.inc.c @@ -30,7 +30,7 @@ static SDL_Surface *SDL_SetVideoMode(int width, int height, int bpp, Uint32 flag #if defined (__NGAGE__) || defined (NGAGE_DEBUG) sdl2_window = SDL_CreateWindow("", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, 0); #else - sdl2_window = SDL_CreateWindow("", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_RESIZABLE); + sdl2_window = SDL_CreateWindow("", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, width, height, SDL_WINDOW_ALLOW_HIGHDPI | SDL_WINDOW_RESIZABLE); #endif if (!sdl2_window) {