From: Holger Schemel Date: Tue, 8 Mar 2016 11:58:17 +0000 (+0100) Subject: adjusted title screen handling, fixing screen border redraw bug on start X-Git-Tag: 4.0.0.0-rc1~56 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=530c3496077af2ddf295d252b4ad0c2ad15e1d21;p=rocksndiamonds.git adjusted title screen handling, fixing screen border redraw bug on start --- diff --git a/src/screens.c b/src/screens.c index 551b2a6b..7181f750 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1420,6 +1420,17 @@ void DrawMainMenu() /* needed if last screen (level choice) changed graphics, sounds or music */ ReloadCustomArtwork(0); + if (CheckTitleScreen(levelset_has_changed)) + { + game_status_last_screen = GAME_MODE_MAIN; + + SetGameStatus(GAME_MODE_TITLE); + + DrawTitleScreen(); + + return; + } + /* needed if different viewport properties defined for menues */ ChangeViewportPropertiesIfNeeded(); @@ -1436,17 +1447,6 @@ void DrawMainMenu() SetDrawtoField(DRAW_BACKBUFFER); - if (CheckTitleScreen(levelset_has_changed)) - { - game_status_last_screen = GAME_MODE_MAIN; - - SetGameStatus(GAME_MODE_TITLE); - - DrawTitleScreen(); - - return; - } - /* level_nr may have been set to value over handicap with level editor */ if (setup.handicap && level_nr > leveldir_current->handicap_level) level_nr = leveldir_current->handicap_level;