1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

fix campaign video scrolling for short texts

This commit is contained in:
Laserlicht
2024-10-14 23:26:24 +02:00
parent 94a0de716a
commit d65938fa17
3 changed files with 10 additions and 1 deletions

View File

@ -176,6 +176,11 @@ void CMultiLineLabel::setText(const std::string & Txt)
CLabel::setText(Txt);
}
std::vector<std::string> CMultiLineLabel::getLines()
{
return lines;
}
void CTextContainer::blitLine(Canvas & to, Rect destRect, std::string what)
{
const auto f = GH.renderHandler().loadFont(font);