From 60b3fc076925c5cdbba041b122d3d1f44bcf7729 Mon Sep 17 00:00:00 2001 From: inmarket Date: Mon, 12 Dec 2016 19:58:46 +1000 Subject: [PATCH] Fix a win32.raw32 platform compile bug caused by the windows headers not being included --- drivers/multiple/Win32/gdisp_lld_Win32.c | 4 ++-- drivers/multiple/Win32/gdisp_lld_config.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/multiple/Win32/gdisp_lld_Win32.c b/drivers/multiple/Win32/gdisp_lld_Win32.c index 9f0bb397..7bb6d137 100644 --- a/drivers/multiple/Win32/gdisp_lld_Win32.c +++ b/drivers/multiple/Win32/gdisp_lld_Win32.c @@ -451,8 +451,8 @@ typedef struct winPriv { #endif } winPriv; -void gfxEmulatorSetParentWindow(HWND hwnd) { - hWndParent = hwnd; +void gfxEmulatorSetParentWindow(void *hwnd) { + hWndParent = (HWND)hwnd; } #if GFX_USE_GINPUT && GINPUT_NEED_MOUSE diff --git a/drivers/multiple/Win32/gdisp_lld_config.h b/drivers/multiple/Win32/gdisp_lld_config.h index 91891290..53f8bff7 100644 --- a/drivers/multiple/Win32/gdisp_lld_config.h +++ b/drivers/multiple/Win32/gdisp_lld_config.h @@ -51,7 +51,7 @@ // Passing a NULL will reset window creation to creating top level windows. // Note: In order to affect any static displays it must be called BEFORE gfxInit(). // Note: Creating a window under a parent causes the Mouse to be disabled by default (rather than enabled as for a top window) -void gfxEmulatorSetParentWindow(HWND hwnd); +void gfxEmulatorSetParentWindow(void *hwnd); #if GINPUT_NEED_MOUSE // This function allows you to inject mouse events into the ugfx mouse driver