Browse Source

Fix a win32.raw32 platform compile bug caused by the windows headers not being included

inmarket 3 years ago
parent
commit
60b3fc0769

+ 2 - 2
drivers/multiple/Win32/gdisp_lld_Win32.c

@@ -451,8 +451,8 @@ typedef struct winPriv {
451 451
 	#endif
452 452
 } winPriv;
453 453
 
454
-void gfxEmulatorSetParentWindow(HWND hwnd) {
455
-	hWndParent = hwnd;
454
+void gfxEmulatorSetParentWindow(void *hwnd) {
455
+	hWndParent = (HWND)hwnd;
456 456
 }
457 457
 
458 458
 #if GFX_USE_GINPUT && GINPUT_NEED_MOUSE

+ 1 - 1
drivers/multiple/Win32/gdisp_lld_config.h

@@ -51,7 +51,7 @@
51 51
 // Passing a NULL will reset window creation to creating top level windows.
52 52
 // Note: In order to affect any static displays it must be called BEFORE gfxInit().
53 53
 // Note: Creating a window under a parent causes the Mouse to be disabled by default (rather than enabled as for a top window)
54
-void gfxEmulatorSetParentWindow(HWND hwnd);
54
+void gfxEmulatorSetParentWindow(void *hwnd);
55 55
 
56 56
 #if GINPUT_NEED_MOUSE
57 57
 	// This function allows you to inject mouse events into the ugfx mouse driver