Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ArduinoGraphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ void ArduinoGraphics::endText(int scrollDirection)
stroke(_textR, _textG, _textB);

if (scrollDirection == SCROLL_LEFT) {
int scrollLength = _textBuffer.length() * textFontWidth() + _textX;
int scrollLength = _textBuffer.length() * textFontWidth() + _textX + 1;

for (int i = 0; i < scrollLength; i++) {
beginDraw();
Expand All @@ -476,7 +476,7 @@ void ArduinoGraphics::endText(int scrollDirection)
delay(_textScrollSpeed);
}
} else if (scrollDirection == SCROLL_UP) {
int scrollLength = textFontHeight() + _textY;
int scrollLength = textFontHeight() + _textY + 1;

for (int i = 0; i < scrollLength; i++) {
beginDraw();
Expand Down