src/video/gem/SDL_gemmouse.c
changeset 2025 7312feb88dad
parent 2020 091bb215baf9
child 2189 f54670a477bb
--- a/src/video/gem/SDL_gemmouse.c	Tue Sep 12 19:44:51 2006 +0000
+++ b/src/video/gem/SDL_gemmouse.c	Tue Sep 12 19:47:40 2006 +0000
@@ -167,10 +167,12 @@
 {
     /* If the mouse is hidden and input is grabbed, we use relative mode */
     if ((!(SDL_cursorstate & CURSOR_VISIBLE)) &&
-        /*(this->input_grab != SDL_GRAB_OFF) && *//* Damn GEM can not grab */
+        (this->input_grab != SDL_GRAB_OFF) &&
         (SDL_GetAppState() & SDL_APPACTIVE)) {
+        SDL_AtariXbios_LockMousePosition(SDL_TRUE);
         GEM_mouse_relative = SDL_TRUE;
     } else {
+        SDL_AtariXbios_LockMousePosition(SDL_FALSE);
         GEM_mouse_relative = SDL_FALSE;
         graf_mouse(M_ON, NULL);
     }