refactored message drawing and layouting

This commit is contained in:
fourtf
2017-10-11 10:34:04 +02:00
parent 8b25d37a37
commit f0c21f5b49
16 changed files with 225 additions and 249 deletions
+2 -2
View File
@@ -115,9 +115,9 @@ int WordPart::getCharacterLength() const
return this->getWord().isImage() ? 2 : this->getText().length() + 1;
}
short WordPart::getCharacterWidth(int index) const
short WordPart::getCharWidth(int index) const
{
return this->getWord().getCharacterWidthCache().at(index + this->wordCharOffset);
return this->getWord().getCharWidth(index + this->wordCharOffset);
}
} // namespace messages
} // namespace chatterino