mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 23:40:58 +00:00
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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1048 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
5989e7136d
commit
4a28b9ad2e
1 changed files with 0 additions and 22 deletions
|
@ -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)
|
void Sys_Init (void)
|
||||||
{
|
{
|
||||||
OSVERSIONINFO vinfo;
|
OSVERSIONINFO vinfo;
|
||||||
|
|
||||||
Sys_SetDPIAware ();
|
|
||||||
|
|
||||||
memset (cwd, 0, sizeof(cwd));
|
memset (cwd, 0, sizeof(cwd));
|
||||||
Sys_GetBasedir(NULL, cwd, sizeof(cwd));
|
Sys_GetBasedir(NULL, cwd, sizeof(cwd));
|
||||||
host_parms->basedir = cwd;
|
host_parms->basedir = cwd;
|
||||||
|
|
Loading…
Reference in a new issue