projects
/
neverball
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
070824b
)
Prevent switching to windowed mode
author
Alberto Mardegan
<mardy@users.sourceforge.net>
Tue, 5 Jul 2011 09:34:41 +0000
(12:34 +0300)
committer
Alberto 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
patch
|
blob
|
history
diff --git
a/share/video.c
b/share/video.c
index
c2b3147
..
0beb95c
100644
(file)
--- a/
share/video.c
+++ b/
share/video.c
@@
-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;
}