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