mirror of https://github.com/sm64pc/sm64pc.git
Merge d86e2cc433
into d7ca2c0436
This commit is contained in:
commit
839960a9c9
|
@ -151,6 +151,11 @@ static void gfx_sdl_reset_dimension_and_pos(void) {
|
|||
}
|
||||
|
||||
static void gfx_sdl_init(const char *window_title) {
|
||||
#if SDL_VERSION_ATLEAST(2,24,0)
|
||||
/* fix DPI scaling issues on Windows */
|
||||
SDL_SetHint(SDL_HINT_WINDOWS_DPI_AWARENESS, "permonitorv2");
|
||||
#endif
|
||||
|
||||
SDL_Init(SDL_INIT_VIDEO);
|
||||
|
||||
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
|
||||
|
|
Loading…
Reference in New Issue