Weiter Logic Fehler changed. v2.2
This commit is contained in:
parent
092b65d509
commit
a769977a8a
|
@ -96,9 +96,11 @@ void TextRenderer::update(std::string newText) {
|
|||
}
|
||||
|
||||
if(specialCharacterCurrentX != tempSpecialCharacterCurrentX && specialCharacterCurrentY != tempSpecialCharacterCurrentY) {
|
||||
clear(tempBlinkX, tempBlinkY, tempBlinkX + 1, tempBlinkY + fontHeight);
|
||||
clear(tempBlinkX, tempBlinkY, tempBlinkX + 1, tempBlinkY + fontHeight + 1);
|
||||
if(tempSpecialChar != '\n') {
|
||||
translateToSharedMemory(getCharacter(tempSpecialChar, font), tempSpecialCharacterCurrentX, tempSpecialCharacterCurrentY, fontColor);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
currentLine = ((i + space) / fontNumbersInOneLine);
|
||||
|
||||
|
@ -127,7 +129,7 @@ void TextRenderer::update(std::string newText) {
|
|||
|
||||
std::string TextRenderer::adjustText(std::string newText) {
|
||||
int fontNumbersInOneLine = windowWidth / (fontWidth + left_margin);
|
||||
int totalLine = windowHeight / (fontHeight + bottom_margin) - 1;
|
||||
int totalLine = windowHeight / (fontHeight + bottom_margin);
|
||||
|
||||
int stringLine = 1;
|
||||
int characterNumberOfLastLine = 0;
|
||||
|
|
Loading…
Reference in New Issue