Weiter Logic Fehler changed. v2.1
This commit is contained in:
parent
bd881ef82d
commit
33fd4b0e47
|
@ -56,17 +56,18 @@ void TextRenderer::update(std::string newText) {
|
|||
std::vector<std::vector<bool>> characterBitmap;
|
||||
|
||||
// std::cout << fontNumbersInOneLine << "..." << std::endl;
|
||||
//
|
||||
// if(newText.size() < oldTextsize) {
|
||||
// clear(specialCharacterCurrentX, specialCharacterCurrentY, specialCharacterCurrentX + fontWidth + 1, specialCharacterCurrentX + fontHeight + 1);
|
||||
// }
|
||||
|
||||
if(newText.size() < oldTextsize) {
|
||||
clear(specialCharacterCurrentX, specialCharacterCurrentY, specialCharacterCurrentX + fontWidth + 1, specialCharacterCurrentX + fontHeight + 1);
|
||||
}
|
||||
|
||||
clear();
|
||||
newText = adjustText(newText);
|
||||
|
||||
std::cout << newText << "\n" << std::endl;
|
||||
|
||||
for(i = 0; i < newText.size(); i++) {
|
||||
if(i > oldText.size() || oldText[i] != newText[i]) {
|
||||
// if(i > oldText.size() || oldText[i] != newText[i]) {
|
||||
if(newText[i] == returnCharacter) {
|
||||
space += (fontNumbersInOneLine - ((i + space) % fontNumbersInOneLine) - 1);
|
||||
} else {
|
||||
|
@ -113,7 +114,7 @@ void TextRenderer::update(std::string newText) {
|
|||
translateToSharedMemory(characterBitmap, currentX, currentY, fontColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
if(newText.size() < oldTextsize) {
|
||||
|
|
Loading…
Reference in New Issue