Fixed 64-bit compile warnings on Visual C++
authorSam Lantinga <slouken@libsdl.org>
Wed, 06 Mar 2013 11:59:19 -0800
changeset 6973 ae30ec97694a
parent 6972 3457cb05b7fb
child 6974 11a03a79dfe8
Fixed 64-bit compile warnings on Visual C++
src/video/windows/SDL_windowsevents.c
src/video/windows/SDL_windowsmessagebox.c
src/video/windows/SDL_windowswindow.h
--- a/src/video/windows/SDL_windowsevents.c	Wed Mar 06 11:59:15 2013 -0800
+++ b/src/video/windows/SDL_windowsevents.c	Wed Mar 06 11:59:19 2013 -0800
@@ -67,7 +67,7 @@
 #endif
 
 static SDL_Scancode 
-WindowsScanCodeToSDLScanCode( int lParam, int wParam )
+WindowsScanCodeToSDLScanCode( LPARAM lParam, WPARAM wParam )
 {
 	SDL_Scancode code;
 	char bIsExtended;
--- a/src/video/windows/SDL_windowsmessagebox.c	Wed Mar 06 11:59:15 2013 -0800
+++ b/src/video/windows/SDL_windowsmessagebox.c	Wed Mar 06 11:59:19 2013 -0800
@@ -231,7 +231,8 @@
 WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
 {
     WIN_DialogData *dialog;
-    int i, x, y, w, h, gap, which;
+    int i, x, y, w, h, gap;
+    INT_PTR which;
     const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
  
     /* FIXME: Need a better algorithm for laying out the message box */
--- a/src/video/windows/SDL_windowswindow.h	Wed Mar 06 11:59:15 2013 -0800
+++ b/src/video/windows/SDL_windowswindow.h	Wed Mar 06 11:59:19 2013 -0800
@@ -32,7 +32,7 @@
     HBITMAP hbm;
     WNDPROC wndproc;
     SDL_bool created;
-    Uint32 mouse_button_flags;
+    WPARAM mouse_button_flags;
     struct SDL_VideoData *videodata;
 } SDL_WindowData;