Enable high-resolution SDL2 rendering.

Combined with 'scale_nearest true', this offers sharp graphics on retina
displays.
This commit is contained in:
Alexander Thomas 2019-02-23 20:10:11 +01:00
parent ab0948d02e
commit 0fe02268f7
1 changed files with 1 additions and 1 deletions

View File

@ -705,7 +705,7 @@ static SDL_Surface * init_sdl_video(int width, int height, int bpp, Uint32 flags
int window_width = width;
int window_height = height;
Uint32 window_flags = 0;
Uint32 window_flags = SDL_WINDOW_ALLOW_HIGHDPI;
const int window_flags_to_monitor = SDL_WINDOW_FULLSCREEN;
if (flags & SDL_WINDOW_FULLSCREEN) {