From a4f3ef53d95128f2861c43ad32c3464f0a934fa1 Mon Sep 17 00:00:00 2001 From: ewasylishen Date: Mon, 7 Sep 2015 20:36:39 +0000 Subject: [PATCH] sys_sdl_win.c: fix calling conventions for SetProcessDpiAware[ness]. Was getting a runtime error about that when compiling with VS2015. git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1248 af15c1b1-3010-417e-b628-4374ebc0bcbd --- quakespasm/Quake/sys_sdl_win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quakespasm/Quake/sys_sdl_win.c b/quakespasm/Quake/sys_sdl_win.c index 67a3da9f..89217942 100644 --- a/quakespasm/Quake/sys_sdl_win.c +++ b/quakespasm/Quake/sys_sdl_win.c @@ -175,8 +175,8 @@ static void Sys_GetBasedir (char *argv0, char *dst, size_t dstsize) } typedef enum { dpi_unaware = 0, dpi_system_aware = 1, dpi_monitor_aware = 2 } dpi_awareness; -typedef BOOL(*SetProcessDPIAwareFunc)(); -typedef HRESULT(*SetProcessDPIAwarenessFunc)(dpi_awareness value); +typedef BOOL (WINAPI *SetProcessDPIAwareFunc)(); +typedef HRESULT (WINAPI *SetProcessDPIAwarenessFunc)(dpi_awareness value); static void Sys_SetDPIAware (void) {