Mouse now grabbed in fullscreen modes to take advantage of SDL's DGA stuff.

This commit is contained in:
theoddone33
2001-04-19 19:11:34 +00:00
parent 9a6e269bbd
commit b72a81120e

View File

@@ -1271,7 +1271,10 @@ int startgame(void)
SurfaceY);
return FALSE;
}
// Grab mouse in fullscreen mode
FullScreen ? SDL_WM_GrabInput(SDL_GRAB_ON) : SDL_WM_GrabInput(SDL_GRAB_OFF);
/* Need to handle situations where BPP is not what we can handle */
SDL_WM_SetCaption ("ZSNES Linux","ZSNES");
SDL_ShowCursor(0);
@@ -2399,7 +2402,11 @@ void drawscreenwin(void)
void LinuxExit (void)
{
if (sdl_inited) SDL_Quit();
if (sdl_inited)
{
SDL_WM_GrabInput(SDL_GRAB_OFF); // probably redundant
SDL_Quit();
}
exit(0);
}