Weiter Logic Fehler changed. v2.3

This commit is contained in:
my 2019-12-18 18:20:18 +01:00
parent a769977a8a
commit 66c60c8cd3
1 changed files with 4 additions and 1 deletions

View File

@ -93,11 +93,14 @@ void TextRenderer::update(std::string newText) {
if(_specialCharacter != '\n') { if(_specialCharacter != '\n') {
characterBitmap = getCharacter(_specialCharacter, font); characterBitmap = getCharacter(_specialCharacter, font);
translateToSharedMemory(characterBitmap, specialCharacterCurrentX, specialCharacterCurrentY, speicialFontColor); translateToSharedMemory(characterBitmap, specialCharacterCurrentX, specialCharacterCurrentY, speicialFontColor);
} else {
blinkX = 0;
blinkY += (fontHeight + bottom_margin);
} }
if(specialCharacterCurrentX != tempSpecialCharacterCurrentX && specialCharacterCurrentY != tempSpecialCharacterCurrentY) { if(specialCharacterCurrentX != tempSpecialCharacterCurrentX && specialCharacterCurrentY != tempSpecialCharacterCurrentY) {
clear(tempBlinkX, tempBlinkY, tempBlinkX + 1, tempBlinkY + fontHeight + 1); clear(tempBlinkX, tempBlinkY, tempBlinkX + 1, tempBlinkY + fontHeight + 1);
if(tempSpecialChar != '\n') { if(tempSpecialChar != '\n' && (tempSpecialCharacterCurrentY * 10 + tempSpecialCharacterCurrentX <= specialCharacterCurrentY * 10 + tempSpecialCharacterCurrentX)) {
translateToSharedMemory(getCharacter(tempSpecialChar, font), tempSpecialCharacterCurrentX, tempSpecialCharacterCurrentY, fontColor); translateToSharedMemory(getCharacter(tempSpecialChar, font), tempSpecialCharacterCurrentX, tempSpecialCharacterCurrentY, fontColor);
} }
} }