src/video/SDL_video.c
changeset 10027 f7ab0613164a
parent 10026 5f73f513b9f5
child 10056 4f139e059592
     1.1 --- a/src/video/SDL_video.c	Tue Jan 05 02:28:56 2016 -0500
     1.2 +++ b/src/video/SDL_video.c	Tue Apr 21 09:45:58 2015 -0400
     1.3 @@ -2228,6 +2228,19 @@
     1.4      return 0;
     1.5  }
     1.6  
     1.7 +int
     1.8 +SDL_SetWindowModalFor(SDL_Window * modal_window, SDL_Window * parent_window)
     1.9 +{
    1.10 +    CHECK_WINDOW_MAGIC(modal_window, -1);
    1.11 +    CHECK_WINDOW_MAGIC(parent_window, -1);
    1.12 +
    1.13 +    if (!_this->SetWindowModalFor) {
    1.14 +        return SDL_Unsupported();
    1.15 +    }
    1.16 +    
    1.17 +    return _this->SetWindowModalFor(_this, modal_window, parent_window);
    1.18 +}
    1.19 +
    1.20  int 
    1.21  SDL_SetWindowInputFocus(SDL_Window * window)
    1.22  {