Fixed 64-bit compile warnings on Visual C++
authorSam Lantinga <slouken@libsdl.org>
Wed, 06 Mar 2013 11:59:19 -0800
changeset 6973ae30ec97694a
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
     1.1 --- a/src/video/windows/SDL_windowsevents.c	Wed Mar 06 11:59:15 2013 -0800
     1.2 +++ b/src/video/windows/SDL_windowsevents.c	Wed Mar 06 11:59:19 2013 -0800
     1.3 @@ -67,7 +67,7 @@
     1.4  #endif
     1.5  
     1.6  static SDL_Scancode 
     1.7 -WindowsScanCodeToSDLScanCode( int lParam, int wParam )
     1.8 +WindowsScanCodeToSDLScanCode( LPARAM lParam, WPARAM wParam )
     1.9  {
    1.10  	SDL_Scancode code;
    1.11  	char bIsExtended;
     2.1 --- a/src/video/windows/SDL_windowsmessagebox.c	Wed Mar 06 11:59:15 2013 -0800
     2.2 +++ b/src/video/windows/SDL_windowsmessagebox.c	Wed Mar 06 11:59:19 2013 -0800
     2.3 @@ -231,7 +231,8 @@
     2.4  WIN_ShowMessageBox(const SDL_MessageBoxData *messageboxdata, int *buttonid)
     2.5  {
     2.6      WIN_DialogData *dialog;
     2.7 -    int i, x, y, w, h, gap, which;
     2.8 +    int i, x, y, w, h, gap;
     2.9 +    INT_PTR which;
    2.10      const SDL_MessageBoxButtonData *buttons = messageboxdata->buttons;
    2.11   
    2.12      /* FIXME: Need a better algorithm for laying out the message box */
     3.1 --- a/src/video/windows/SDL_windowswindow.h	Wed Mar 06 11:59:15 2013 -0800
     3.2 +++ b/src/video/windows/SDL_windowswindow.h	Wed Mar 06 11:59:19 2013 -0800
     3.3 @@ -32,7 +32,7 @@
     3.4      HBITMAP hbm;
     3.5      WNDPROC wndproc;
     3.6      SDL_bool created;
     3.7 -    Uint32 mouse_button_flags;
     3.8 +    WPARAM mouse_button_flags;
     3.9      struct SDL_VideoData *videodata;
    3.10  } SDL_WindowData;
    3.11