From 7157c3b441321cb841316c4b408e0b9462d5f51e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Mon, 8 Aug 2022 23:53:17 +0300 Subject: [PATCH] engine: platform: sdl: don't enable high dpi code for Apple It seems enables HighDPI awareness but doesn't create HighDPI OpenGL context It needs some plist magic to be enabled back again --- engine/platform/sdl/vid_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/platform/sdl/vid_sdl.c b/engine/platform/sdl/vid_sdl.c index c2453cca..e9dd87e3 100644 --- a/engine/platform/sdl/vid_sdl.c +++ b/engine/platform/sdl/vid_sdl.c @@ -553,7 +553,9 @@ static qboolean VID_SetScreenResolution( int width, int height ) Uint32 wndFlags = 0; static string wndname; +#if !XASH_APPLE if( vid_highdpi->value ) wndFlags |= SDL_WINDOW_ALLOW_HIGHDPI; +#endif Q_strncpy( wndname, GI->title, sizeof( wndname )); want.w = width;