Fixes pointer dissapearing after exiting the race through the race menu.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1190 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
coz 2007-07-28 17:27:56 +00:00
parent 27530aa7ef
commit c3d987e4fb

View File

@ -65,8 +65,6 @@ RaceMenu::RaceMenu()
RaceMenu::~RaceMenu() RaceMenu::~RaceMenu()
{ {
widgetSet -> delete_widget(m_menu_id) ; widgetSet -> delete_widget(m_menu_id) ;
if(user_config->m_fullscreen) SDL_ShowCursor(SDL_DISABLE);
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -86,6 +84,7 @@ void RaceMenu::select()
case WTOK_RETURN_RACE: case WTOK_RETURN_RACE:
world->unpause(); world->unpause();
menu_manager->popMenu(); menu_manager->popMenu();
if(user_config->m_fullscreen) SDL_ShowCursor(SDL_DISABLE);
break; break;
case WTOK_SETUP_NEW_RACE: case WTOK_SETUP_NEW_RACE:
@ -97,6 +96,7 @@ void RaceMenu::select()
case WTOK_RESTART_RACE: case WTOK_RESTART_RACE:
world->unpause(); world->unpause();
menu_manager->popMenu(); menu_manager->popMenu();
if(user_config->m_fullscreen) SDL_ShowCursor(SDL_DISABLE);
world->restartRace(); world->restartRace();
break; break;