From: Holger Schemel Date: Tue, 31 May 2016 18:42:05 +0000 (+0200) Subject: fixed changing viewport properties not before fading out last screen X-Git-Tag: 4.0.0.0-rc3~38 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=dd8521beb7a6b4aaf21168b328dfe7aa50f951ec;p=rocksndiamonds.git fixed changing viewport properties not before fading out last screen --- diff --git a/src/screens.c b/src/screens.c index 4f7dd6f6..1748b1aa 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1449,9 +1449,6 @@ void DrawMainMenu() return; } - /* needed if different viewport properties defined for menues */ - ChangeViewportPropertiesIfNeeded(); - if (redraw_mask & REDRAW_ALL) fade_mask = REDRAW_ALL; @@ -1460,6 +1457,9 @@ void DrawMainMenu() FadeOut(fade_mask); + /* needed if different viewport properties defined for menues */ + ChangeViewportPropertiesIfNeeded(); + SetDrawtoField(DRAW_TO_BACKBUFFER); /* level_nr may have been set to value over handicap with level editor */ @@ -4134,9 +4134,6 @@ void DrawHallOfFame(int highlight_position) { int fade_mask = REDRAW_FIELD; - /* needed if different viewport properties defined for scores */ - ChangeViewportPropertiesIfNeeded(); - if (CheckIfGlobalBorderHasChanged()) fade_mask = REDRAW_ALL; @@ -4158,6 +4155,9 @@ void DrawHallOfFame(int highlight_position) FadeOut(fade_mask); + /* needed if different viewport properties defined for scores */ + ChangeViewportPropertiesIfNeeded(); + PlayMenuSound(); PlayMenuMusic();