Avoid parts of the previous game show in the lobby.

Fixes bug #15768.
This commit is contained in:
Mark de Wever 2010-04-05 18:43:58 +00:00
parent 0d8cc90b4f
commit aecd53092f
2 changed files with 11 additions and 0 deletions

View File

@ -22,6 +22,7 @@ Version 1.9.0-svn:
* Added tooltips to the --new-widgets title screen
* Added a place holder upload statistics button in the --new-widgets title
* Fixed bug #15716: Lobby crash when refreshing with filtered out games
* Fixed bug #15768: Avoid parts of the previous game show in the lobby
screen
* WML Engine:
* Deprecated [set_variable]'s random key, use rand instead

View File

@ -537,6 +537,16 @@ static void enter_lobby_mode(game_display& disp, const config& game_config, mp::
sound::stop_music();
}
lobby_info li(game_config);
// Force a black background
const Uint32 colour = SDL_MapRGBA(disp.video().getSurface()->format
, 0
, 0
, 0
, 255);
SDL_FillRect(disp.video().getSurface(), NULL, colour);
gui2::tlobby_main dlg(game_config, li, disp);
dlg.set_preferences_callback(
boost::bind(do_preferences_dialog,