From 25ade79b907114cb3dc21bb156be8017f91170c4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 24 Aug 2020 22:18:45 +0200 Subject: [PATCH] - stat display fine tuning. --- source/blood/src/sbar.cpp | 4 ++-- source/games/duke/src/sbar.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/blood/src/sbar.cpp b/source/blood/src/sbar.cpp index 79645c5af..46553bce2 100644 --- a/source/blood/src/sbar.cpp +++ b/source/blood/src/sbar.cpp @@ -221,7 +221,7 @@ private: FLevelStats stats{}; stats.fontscale = 1.; - stats.spacing = SmallFont->GetHeight() + 2; + stats.spacing = SmallFont->GetHeight() + 1; stats.screenbottomspace = bottomy; stats.font = SmallFont; stats.letterColor = CR_DARKRED; @@ -633,7 +633,7 @@ private: } drawInventory(pPlayer, 166, 200 - tilesiz[2200].y); // Depending on the scale we can lower the stats display. This needs some tweaking but this catches the important default case already. - PrintLevelStats(pPlayer, (hud_statscale <= 0.501f || hud_scale < 70) && double(xdim)/ydim > 1.6? 28 : 56); + PrintLevelStats(pPlayer, (hud_statscale <= 0.501f || hud_scale < 0.7) && double(xdim)/ydim > 1.6? 28 : 56); } diff --git a/source/games/duke/src/sbar.cpp b/source/games/duke/src/sbar.cpp index 88a7836b2..87b804754 100644 --- a/source/games/duke/src/sbar.cpp +++ b/source/games/duke/src/sbar.cpp @@ -222,7 +222,7 @@ void DDukeCommonStatusBar::PrintLevelStats(int bottomy) { // The stock font of these games is totally unusable for this. stats.font = ConFont; - stats.spacing = ConFont->GetHeight() + 2; + stats.spacing = ConFont->GetHeight() + 1; stats.letterColor = CR_ORANGE; stats.standardColor = CR_YELLOW; stats.completeColor = CR_FIRE;