From 9c1faaa3acdccd95f68dc04d057efc7e62a1fb82 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Wed, 29 Jul 2020 18:36:50 +1000 Subject: [PATCH] - scaling consistency changes from uplifting Redneck Rampage HUDs. --- source/games/duke/src/sbar_d.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/games/duke/src/sbar_d.cpp b/source/games/duke/src/sbar_d.cpp index ccad9d04c..e9f04d330 100644 --- a/source/games/duke/src/sbar_d.cpp +++ b/source/games/duke/src/sbar_d.cpp @@ -116,7 +116,7 @@ public: void FullscreenHUD1(struct player_struct* p, int snum) { - float imgScale = 14.f; + double imgScale = (scale * numberFont.mFont->GetHeight()) * 0.7; // // Health @@ -168,7 +168,7 @@ public: if (strlen > 1) { auto scaler = strlen - 1; - imgX += ((imgX / 2.) * scaler) + ((imgX / 10.) * scaler); + imgX += ((imgX / 2.) * scaler) + ((imgX / (10. * scale)) * scaler); } DrawGraphic(imgWeap, -imgX, -1.5, DI_ITEM_RIGHT_BOTTOM, 1, -1, -1, weapScale, weapScale); }