fixed viewport properties for score info page
[rocksndiamonds.git] / src / tools.c
index 67c870083e2d4ee6456d0900a6e36c432a56a474..83b61d9c54e2c490e26422356a2b5be61b35c407 100644 (file)
@@ -1122,7 +1122,8 @@ Bitmap *getGlobalBorderBitmapFromStatus(int status)
   int graphic =
     (status == GAME_MODE_MAIN ||
      status == GAME_MODE_PSEUDO_TYPENAME       ? IMG_GLOBAL_BORDER_MAIN :
-     status == GAME_MODE_SCORES                        ? IMG_GLOBAL_BORDER_SCORES :
+     status == GAME_MODE_SCORES ||
+     status == GAME_MODE_SCOREINFO             ? IMG_GLOBAL_BORDER_SCORES :
      status == GAME_MODE_EDITOR                        ? IMG_GLOBAL_BORDER_EDITOR :
      status == GAME_MODE_PLAYING               ? IMG_GLOBAL_BORDER_PLAYING :
      IMG_GLOBAL_BORDER);
@@ -9739,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];