1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-10-08 23:22:25 +02:00

Merge pull request #6198 from Laserlicht/bonus_text

fix bonus text pos
This commit is contained in:
Ivan Savenko
2025-10-04 14:58:12 +03:00
committed by GitHub

View File

@@ -320,7 +320,7 @@ CStackWindow::BonusLineSection::BonusLineSection(CStackWindow * owner, size_t li
if (!bi.imagePath.empty()) if (!bi.imagePath.empty())
icon[leftRight] = std::make_shared<CPicture>(bi.imagePath, position.x, position.y); icon[leftRight] = std::make_shared<CPicture>(bi.imagePath, position.x, position.y);
description[leftRight] = std::make_shared<CMultiLineLabel>(Rect(position.x + 60, position.y + 2, 137, 50), FONT_TINY, ETextAlignment::TOPLEFT, Colors::WHITE, bi.description); description[leftRight] = std::make_shared<CMultiLineLabel>(Rect(position.x + 60, position.y, 137, 50), FONT_TINY, ETextAlignment::TOPLEFT, Colors::WHITE, bi.description);
drawBonusSource(leftRight, Point(position.x - 1, position.y - 1), bi); drawBonusSource(leftRight, Point(position.x - 1, position.y - 1), bi);
} }
} }