comparison src/video/gem/SDL_gemwm.c @ 2025:7312feb88dad

Allow grabing mouse by locking its position
author Patrice Mandin <patmandin@gmail.com>
date Tue, 12 Sep 2006 19:47:40 +0000
parents c121d94672cb
children
comparison
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: */