mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-22 22:13:35 +02:00
revert text fix
This commit is contained in:
parent
150f4904ab
commit
f6b37dbca2
@ -117,14 +117,7 @@ std::vector<std::string> CMessage::breakText(std::string text, size_t maxLineWid
|
|||||||
color = "";
|
color = "";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
printableString.append(text.data() + currPos, symbolSize);
|
||||||
std::string character = "";
|
|
||||||
character.append(text.data() + currPos, symbolSize);
|
|
||||||
if(fontPtr->getStringWidth(printableString + character) > maxLineWidth)
|
|
||||||
break;
|
|
||||||
printableString += character;
|
|
||||||
}
|
|
||||||
|
|
||||||
currPos += symbolSize;
|
currPos += symbolSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user