Fix team bar height depending on NameTex
authorWuzzy <Wuzzy2@mail.ru>
Tue, 02 Apr 2019 01:34:13 +0200
changeset 14762 37a781d28e43
parent 14761 7b2bd37d7503
child 14763 2e8213c0951f
Fix team bar height depending on NameTex
hedgewars/uStore.pas
hedgewars/uWorld.pas
--- a/hedgewars/uStore.pas	Tue Apr 02 01:03:39 2019 +0200
+++ b/hedgewars/uStore.pas	Tue Apr 02 01:34:13 2019 +0200
@@ -326,9 +326,9 @@
 
 for t:= 0 to Pred(ClansCount) do
     with ClansArray[t]^ do
-        HealthTex:= makeHealthBarTexture(cTeamHealthWidth + 5, Teams[0]^.NameTagTex^.h+1, Color);
+        HealthTex:= makeHealthBarTexture(cTeamHealthWidth + 5, 19 * HDPIScaleFactor, Color);
 
-GenericHealthTexture:= makeHealthBarTexture(cTeamHealthWidth + 5, TeamsArray[0]^.NameTagTex^.h+1, cWhiteColor)
+GenericHealthTexture:= makeHealthBarTexture(cTeamHealthWidth + 5, 19 * HDPIScaleFactor, cWhiteColor)
 end;
 
 
--- a/hedgewars/uWorld.pas	Tue Apr 02 01:03:39 2019 +0200
+++ b/hedgewars/uWorld.pas	Tue Apr 02 01:34:13 2019 +0200
@@ -1100,7 +1100,7 @@
         r.x:= 0;
         r.y:= 0;
         r.w:= 2 + TeamHealthBarWidth;
-        r.h:= htex^.h+1;
+        r.h:= htex^.h;
         DrawTextureFromRect(14, cScreenHeight + DrawHealthY + smallScreenOffset, @r, htex);
 
         // draw health bar's right border