src/video/cocoa/SDL_cocoaclipboard.m
changeset 8986 1c81316ac642
parent 8149 681eb46b8ac4
child 9087 eef2e43f60d1
     1.1 --- a/src/video/cocoa/SDL_cocoaclipboard.m	Mon Jul 07 11:44:14 2014 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaclipboard.m	Mon Jul 07 12:48:25 2014 -0700
     1.3 @@ -28,9 +28,7 @@
     1.4  static NSString *
     1.5  GetTextFormat(_THIS)
     1.6  {
     1.7 -    SDL_VideoData *data = (SDL_VideoData *) _this->driverdata;
     1.8 -
     1.9 -    if (data->osversion >= 0x1060) {
    1.10 +    if (floor(NSAppKitVersionNumber) > NSAppKitVersionNumber10_5) {
    1.11          return NSPasteboardTypeString;
    1.12      } else {
    1.13          return NSStringPboardType;
    1.14 @@ -96,7 +94,7 @@
    1.15      char *text = Cocoa_GetClipboardText(_this);
    1.16      if (text) {
    1.17          result = text[0] != '\0' ? SDL_TRUE : SDL_FALSE;
    1.18 -    SDL_free(text);
    1.19 +        SDL_free(text);
    1.20      }
    1.21      return result;
    1.22  }