فهرست منبع

device: fix warning

Daniele Bartolini 5 سال پیش
والد
کامیت
c032794be6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/device/main_windows.cpp

+ 1 - 1
src/device/main_windows.cpp

@@ -358,7 +358,7 @@ struct WindowsDevice
 		CE_ASSERT(_hwnd != NULL, "CreateWindowA: GetLastError = %d", GetLastError());
 
 		if (opts->_parent_window != 0)
-			SetParent(_hwnd, (HWND)opts->_parent_window);
+			SetParent(_hwnd, (HWND)(UINT_PTR)opts->_parent_window);
 
 		_hcursor = LoadCursorA(NULL, IDC_ARROW);