fixed viewport properties for score info page
authorHolger Schemel <info@artsoft.org>
Tue, 12 Apr 2022 21:13:10 +0000 (23:13 +0200)
committerHolger Schemel <info@artsoft.org>
Tue, 12 Apr 2022 21:13:10 +0000 (23:13 +0200)
src/tools.c

index 464a4fb14a797c4f4818481d2b2ef041cda3bf6b..83b61d9c54e2c490e26422356a2b5be61b35c407 100644 (file)
@@ -9740,7 +9740,8 @@ void ChangeViewportPropertiesIfNeeded(void)
 {
   boolean use_mini_tilesize = (level.game_engine_type == GAME_ENGINE_TYPE_MM ?
                               FALSE : setup.small_game_graphics);
-  int gfx_game_mode = game_status;
+  int gfx_game_mode = (game_status == GAME_MODE_SCOREINFO ? GAME_MODE_SCORES :
+                      game_status);
   int gfx_game_mode2 = (game_status == GAME_MODE_EDITOR ? GAME_MODE_DEFAULT :
                        game_status);
   struct RectWithBorder *vp_window    = &viewport.window[gfx_game_mode];