src/video/cocoa/SDL_cocoawindow.m
changeset 10025 bf4f8cde1c54
parent 10022 30807689ca1b
child 10028 da668b612d10
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Tue Jan 05 02:29:06 2016 -0500
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Tue Jan 05 02:46:10 2016 -0500
     1.3 @@ -1782,6 +1782,14 @@
     1.4      return 0;  /* just succeed, the real work is done elsewhere. */
     1.5  }
     1.6  
     1.7 +int
     1.8 +Cocoa_SetWindowOpacity(_THIS, SDL_Window * window, float opacity)
     1.9 +{
    1.10 +    SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
    1.11 +    [data->nswindow setAlphaValue:opacity];
    1.12 +    return 0;
    1.13 +}
    1.14 +
    1.15  #endif /* SDL_VIDEO_DRIVER_COCOA */
    1.16  
    1.17  /* vi: set ts=4 sw=4 expandtab: */