diff --git a/client/battle/BattleInterfaceClasses.cpp b/client/battle/BattleInterfaceClasses.cpp index f9dde7e68..30f687919 100644 --- a/client/battle/BattleInterfaceClasses.cpp +++ b/client/battle/BattleInterfaceClasses.cpp @@ -1064,7 +1064,7 @@ StackQueue::StackBox::StackBox(StackQueue * owner): icon = std::make_shared(AnimationPath::builtin("TWCRPORT"), 0, 0, 9, 1); amount = std::make_shared(pos.w/2, pos.h - 8, FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE); roundRect = std::make_shared(Rect(0, 0, 15, 18), ColorRGBA(0, 0, 0, 255), ColorRGBA(241, 216, 120, 255)); - round = std::make_shared(4, 2, FONT_SMALL, ETextAlignment::TOPLEFT, Colors::WHITE); + round = std::make_shared(6, 9, FONT_SMALL, ETextAlignment::CENTER, Colors::WHITE); Point iconPos(pos.w - 16, pos.h - 16); @@ -1105,6 +1105,7 @@ void StackQueue::StackBox::setUnit(const battle::Unit * unit, size_t turn, std:: const auto & font = GH.renderHandler().loadFont(FONT_SMALL); int len = font->getStringWidth(tmp); roundRect->pos.w = len + 6; + round->pos = Rect(roundRect->pos.center().x, roundRect->pos.center().y, 0, 0); round->setText(tmp); } diff --git a/client/renderSDL/ImageScaled.cpp b/client/renderSDL/ImageScaled.cpp index 219efb999..c28d73025 100644 --- a/client/renderSDL/ImageScaled.cpp +++ b/client/renderSDL/ImageScaled.cpp @@ -137,7 +137,6 @@ void ImageScaled::prepareImages() switch(blitMode) { - case EImageBlitMode::SIMPLE: case EImageBlitMode::WITH_SHADOW: case EImageBlitMode::ONLY_SHADOW: case EImageBlitMode::WITH_SHADOW_AND_OVERLAY: