From d899666d1c08ebacf455ce838a35f75091b90b05 Mon Sep 17 00:00:00 2001 From: ewasylishen Date: Sun, 21 Sep 2014 02:28:50 +0000 Subject: [PATCH] revert r1045 (SetProcessDPIAware).. while it fixed broken fullscreen on one configuration (sdl2/windows 8), it broke another that worked (sdl2/windows 8.1). git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1048 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/sys_sdl_win.c | 22 ---------------------- 1 file changed, 22 deletions(-) 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;