src/video/cocoa/SDL_cocoawindow.m
changeset 10339 826c707b4e7d
parent 10289 a64e365c1e38
child 10353 c0f4fe10d1b3
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Tue Sep 13 00:09:21 2016 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Tue Sep 13 19:51:10 2016 -0300
     1.3 @@ -855,7 +855,7 @@
     1.4          button = SDL_BUTTON_MIDDLE;
     1.5          break;
     1.6      default:
     1.7 -        button = [theEvent buttonNumber] + 1;
     1.8 +        button = (int) [theEvent buttonNumber] + 1;
     1.9          break;
    1.10      }
    1.11      SDL_SendMouseButton(_data->window, 0, SDL_PRESSED, button);
    1.12 @@ -896,7 +896,7 @@
    1.13          button = SDL_BUTTON_MIDDLE;
    1.14          break;
    1.15      default:
    1.16 -        button = [theEvent buttonNumber] + 1;
    1.17 +        button = (int) [theEvent buttonNumber] + 1;
    1.18          break;
    1.19      }
    1.20      SDL_SendMouseButton(_data->window, 0, SDL_RELEASED, button);
    1.21 @@ -1209,7 +1209,7 @@
    1.22      SDL_VideoDisplay *display = SDL_GetDisplayForWindow(window);
    1.23      NSRect rect;
    1.24      SDL_Rect bounds;
    1.25 -    unsigned int style;
    1.26 +    NSUInteger style;
    1.27      NSArray *screens = [NSScreen screens];
    1.28  
    1.29      Cocoa_GetDisplayBounds(_this, display, &bounds);