瀏覽代碼

Fixed warning C4244: 'initializing': conversion from 'WPARAM' to 'Uint32', possible loss of data

Sam Lantinga 1 年之前
父節點
當前提交
690d73f5c9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/windows/SDL_windowsevents.c

+ 1 - 1
src/video/windows/SDL_windowsevents.c

@@ -1481,7 +1481,7 @@ LRESULT CALLBACK WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPara
 
     case WM_SIZING:
         {
-            Uint32 edge = wParam;
+            WPARAM edge = wParam;
             RECT* dragRect = (RECT*)lParam;
             RECT clientDragRect = *dragRect;
             SDL_bool lock_aspect_ratio = (data->window->max_aspect == data->window->min_aspect) ? SDL_TRUE : SDL_FALSE;