If mouse_toggle_cursor is set to activate, do not toggle ursor visibility as mouse_update_cursor_and_grab might decide it should be hidden

This commit is contained in:
zicodxx 2010-08-01 17:46:13 +00:00
parent f0edc54479
commit 7864eb52a0
2 changed files with 1 additions and 1 deletions

View file

@ -3,6 +3,7 @@ D1X-Rebirth Changelog
20100801
--------
main/menu.c, main/songs.c, main/songs.h, main/gameseq.c, main/digi.h, arch/sdl/digi.c: Builtin music list now dynamically allocated and not limited to 30 songs; Instead of never loading new level when loading savestate ingame, only do this for Redbook and Custom Music playing order 'continously'; if no endlevel song is specified in Custom Music continue with level music
arch/sdl/mouse.c: If mouse_toggle_cursor is set to activate, do not toggle ursor visibility as mouse_update_cursor_and_grab might decide it should be hidden
20100731
--------

View file

@ -243,7 +243,6 @@ void mouse_toggle_cursor(int activate)
Mouse.cursor_enabled = (activate && !GameArg.CtlNoMouse);
if (Mouse.cursor_enabled)
{
SDL_ShowCursor(SDL_ENABLE);
if (GameArg.CtlGrabMouse)
SDL_WM_GrabInput(SDL_GRAB_OFF);
}