src/video/cocoa/SDL_cocoawindow.m
changeset 7037 3fedf1f25b94
parent 6953 b83579d7d19a
child 7084 9d43403e9fc5
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Fri Mar 29 21:29:57 2013 -0400
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 31 12:48:50 2013 -0400
     1.3 @@ -501,8 +501,7 @@
     1.4      /* Allocate the window data */
     1.5      data = (SDL_WindowData *) SDL_calloc(1, sizeof(*data));
     1.6      if (!data) {
     1.7 -        SDL_OutOfMemory();
     1.8 -        return -1;
     1.9 +        return SDL_OutOfMemory();
    1.10      }
    1.11      data->window = window;
    1.12      data->nswindow = nswindow;
    1.13 @@ -954,8 +953,7 @@
    1.14  
    1.15      if (CGSetDisplayTransferByTable(display_id, tableSize,
    1.16                                      redTable, greenTable, blueTable) != CGDisplayNoErr) {
    1.17 -        SDL_SetError("CGSetDisplayTransferByTable()");
    1.18 -        return -1;
    1.19 +        return SDL_SetError("CGSetDisplayTransferByTable()");
    1.20      }
    1.21      return 0;
    1.22  }
    1.23 @@ -973,8 +971,7 @@
    1.24  
    1.25      if (CGGetDisplayTransferByTable(display_id, tableSize,
    1.26                                      redTable, greenTable, blueTable, &tableCopied) != CGDisplayNoErr) {
    1.27 -        SDL_SetError("CGGetDisplayTransferByTable()");
    1.28 -        return -1;
    1.29 +        return SDL_SetError("CGGetDisplayTransferByTable()");
    1.30      }
    1.31  
    1.32      for (i = 0; i < tableCopied; i++) {