This commit is contained in:
GhostlyDark 2024-12-20 15:57:12 -04:00 committed by GitHub
commit 839960a9c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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);