Make team bars 1 pixel higher
authorWuzzy <Wuzzy2@mail.ru>
Tue, 02 Apr 2019 00:06:19 +0200
changeset 14759 9423d30ec205
parent 14758 123aaa2bf4b5
child 14760 5d5d7db9f417
Make team bars 1 pixel higher
hedgewars/uStore.pas
hedgewars/uWorld.pas
--- a/hedgewars/uStore.pas	Mon Apr 01 23:15:18 2019 +0200
+++ b/hedgewars/uStore.pas	Tue Apr 02 00:06:19 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, Color);
+        HealthTex:= makeHealthBarTexture(cTeamHealthWidth + 5, Teams[0]^.NameTagTex^.h+1, Color);
 
-GenericHealthTexture:= makeHealthBarTexture(cTeamHealthWidth + 5, TeamsArray[0]^.NameTagTex^.h, cWhiteColor)
+GenericHealthTexture:= makeHealthBarTexture(cTeamHealthWidth + 5, TeamsArray[0]^.NameTagTex^.h+1, cWhiteColor)
 end;
 
 
--- a/hedgewars/uWorld.pas	Mon Apr 01 23:15:18 2019 +0200
+++ b/hedgewars/uWorld.pas	Tue Apr 02 00:06:19 2019 +0200
@@ -1100,7 +1100,7 @@
         r.x:= 0;
         r.y:= 0;
         r.w:= 2 + TeamHealthBarWidth;
-        r.h:= htex^.h;
+        r.h:= htex^.h+1;
         DrawTextureFromRect(14, cScreenHeight + DrawHealthY + smallScreenOffset, @r, htex);
 
         // draw health bar's right border