1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Merge pull request #1712 from rilian-la-te/fix-oob-infobar

Fix #1688 again
This commit is contained in:
Ivan Savenko
2023-03-20 21:41:19 +02:00
committed by GitHub

View File

@@ -170,7 +170,7 @@ CInfoBar::VisibleComponentInfo::VisibleComponentInfo(const std::vector<Component
OBJECT_CONSTRUCTION_CAPTURING(255-DISPOSE);
background = std::make_shared<CPicture>("ADSTATOT", 1, 0);
auto fullRect = Rect(0, 0, data_width, data_height);
auto fullRect = Rect(CInfoBar::offset, CInfoBar::offset, data_width - 2 * CInfoBar::offset, data_height - 2 * CInfoBar::offset);
auto textRect = fullRect;
auto imageRect = fullRect;
auto font = FONT_SMALL;