From 0e8f1f393bda628aa2fb65dbf848af71cfa8d211 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen 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://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1248 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/sys_sdl_win.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Quake/sys_sdl_win.c b/Quake/sys_sdl_win.c index 67a3da9f..89217942 100644 --- a/Quake/sys_sdl_win.c +++ b/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) {