Browse Source

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
pull/2/head
Alibek Omarov 2 years ago
parent
commit
7157c3b441
  1. 2
      engine/platform/sdl/vid_sdl.c

2
engine/platform/sdl/vid_sdl.c

@ -553,7 +553,9 @@ static qboolean VID_SetScreenResolution( int width, int height )
Uint32 wndFlags = 0; Uint32 wndFlags = 0;
static string wndname; static string wndname;
#if !XASH_APPLE
if( vid_highdpi->value ) wndFlags |= SDL_WINDOW_ALLOW_HIGHDPI; if( vid_highdpi->value ) wndFlags |= SDL_WINDOW_ALLOW_HIGHDPI;
#endif
Q_strncpy( wndname, GI->title, sizeof( wndname )); Q_strncpy( wndname, GI->title, sizeof( wndname ));
want.w = width; want.w = width;

Loading…
Cancel
Save