From d652f754d819f873808764bf895a7032a9fe0c8d Mon Sep 17 00:00:00 2001 From: "wagic.the.homebrew" Date: Sat, 7 May 2011 08:44:07 +0000 Subject: [PATCH] Moved "static" mana render a bit to the right for opponent, to avoid rendering it over the opponent's avatar --- projects/mtg/src/GuiMana.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/projects/mtg/src/GuiMana.cpp b/projects/mtg/src/GuiMana.cpp index 70e45d0ba..57a6d694c 100644 --- a/projects/mtg/src/GuiMana.cpp +++ b/projects/mtg/src/GuiMana.cpp @@ -258,8 +258,7 @@ void GuiMana::RenderStatic() return; float x0 = x - 20 * totalColors; - if (x0 < 10) - x0 = 10; + x0 = max(40, x0); float xEnd = x0 + 20 * totalColors; r->FillRoundRect(x0, y - 5, static_cast (20 * totalColors + 5), 20, 2, ARGB(128,0,0,0));