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