From: Holger Schemel Date: Thu, 6 Nov 2014 23:44:05 +0000 (+0100) Subject: fixed changing from title to info screen with custom playfield size X-Git-Tag: 4.0.0.0-rc1~315 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=5a9bcb94e661b4b72b7e3c13d41720053764410d;p=rocksndiamonds.git fixed changing from title to info screen with custom playfield size --- 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 */ {