From 5a9bcb94e661b4b72b7e3c13d41720053764410d Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 7 Nov 2014 00:44:05 +0100 Subject: [PATCH] fixed changing from title to info screen with custom playfield size --- ChangeLog | 1 + src/conftime.h | 2 +- src/screens.c | 4 +++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9f949af9..e3441b09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,6 @@ 2014-11-06 * fixed layout for "level set info" to support custom playfield size + * fixed changing from title to info screen with custom playfield size 2014-11-02 * fixed bug with not updating default bitmap pointer for scaled images diff --git a/src/conftime.h b/src/conftime.h index 0f7e8936..32baad74 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "2014-11-06 16:38" +#define COMPILE_DATE_STRING "2014-11-06 22:15" diff --git a/src/screens.c b/src/screens.c index e453e4a7..982bdf90 100644 --- a/src/screens.c +++ b/src/screens.c @@ -1619,9 +1619,11 @@ void HandleTitleScreen(int mx, int my, int dx, int dy, int button) if (game_status == GAME_MODE_INFO) { + int fade_mask = (num_title_screens == 0 ? REDRAW_FIELD : REDRAW_ALL); + info_mode = INFO_MODE_MAIN; - DrawInfoScreenExt(REDRAW_ALL, use_fading_main_menu); + DrawInfoScreenExt(fade_mask, use_fading_main_menu); } else /* default: return to main menu */ { -- 2.34.1