Prevent switching to windowed mode
authorAlberto Mardegan <mardy@users.sourceforge.net>
Tue, 5 Jul 2011 09:34:41 +0000 (12:34 +0300)
committerAlberto Mardegan <mardy@users.sourceforge.net>
Tue, 12 Jul 2011 12:25:29 +0000 (15:25 +0300)
The mouse grabbing/ungrabbing causes SDL to switch out from fullscreen to
windowed mode. We don't need it anyway.

share/video.c

index c2b3147..0beb95c 100644 (file)
@@ -261,16 +261,20 @@ void video_set_grab(int w)
         SDL_EventState(SDL_MOUSEMOTION, SDL_ENABLE);
     }
 
+#ifndef __MAEMO__
     SDL_WM_GrabInput(SDL_GRAB_ON);
     SDL_ShowCursor(SDL_DISABLE);
+#endif
 
     grabbed = 1;
 }
 
 void video_clr_grab(void)
 {
+#ifndef __MAEMO__
     SDL_WM_GrabInput(SDL_GRAB_OFF);
     SDL_ShowCursor(SDL_ENABLE);
+#endif
     grabbed = 0;
 }