src/video/gem/SDL_gemwm.c
changeset 2025 7312feb88dad
parent 1895 c121d94672cb
equal deleted inserted replaced
2024:cb0fd9cdd2a9 2025:7312feb88dad
   111 }
   111 }
   112 
   112 
   113 SDL_GrabMode
   113 SDL_GrabMode
   114 GEM_GrabInput(_THIS, SDL_GrabMode mode)
   114 GEM_GrabInput(_THIS, SDL_GrabMode mode)
   115 {
   115 {
   116     return SDL_GRAB_OFF;
   116     if (this->screen == NULL) {
       
   117         return SDL_GRAB_OFF;
       
   118     }
       
   119 
       
   120     return mode;
   117 }
   121 }
   118 
   122 
   119 /* vi: set ts=4 sw=4 expandtab: */
   123 /* vi: set ts=4 sw=4 expandtab: */