diff --git a/quakespasm/Quake/sys_sdl_win.c b/quakespasm/Quake/sys_sdl_win.c index af4b2bd7..023f4db5 100644 --- a/quakespasm/Quake/sys_sdl_win.c +++ b/quakespasm/Quake/sys_sdl_win.c @@ -172,32 +172,10 @@ static void Sys_GetBasedir (char *argv0, char *dst, size_t dstsize) } } -typedef BOOL(*SetProcessDPIAwareFunc)(); - -void Sys_SetDPIAware (void) -{ - HMODULE hUser32; - SetProcessDPIAwareFunc setDPIAware; - - /* Neither SDL 1.2 nor SDL 2.0.3 can handle the OS scaling our window. - (e.g. https://bugzilla.libsdl.org/show_bug.cgi?id=2713) - Call SetProcessDPIAware() to opt out of scaling. - */ - - hUser32 = LoadLibraryA ("user32.dll"); - setDPIAware = (SetProcessDPIAwareFunc) GetProcAddress (hUser32, "SetProcessDPIAware"); - if (setDPIAware) - setDPIAware (); - - FreeLibrary (hUser32); -} - void Sys_Init (void) { OSVERSIONINFO vinfo; - Sys_SetDPIAware (); - memset (cwd, 0, sizeof(cwd)); Sys_GetBasedir(NULL, cwd, sizeof(cwd)); host_parms->basedir = cwd;