summaryrefslogtreecommitdiff
path: root/glcdskin/object.c
diff options
context:
space:
mode:
Diffstat (limited to 'glcdskin/object.c')
-rw-r--r--glcdskin/object.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/glcdskin/object.c b/glcdskin/object.c
index ce098f8..471233d 100644
--- a/glcdskin/object.c
+++ b/glcdskin/object.c
@@ -544,7 +544,14 @@ void cSkinObject::Render(GLCD::cBitmap * screen)
}
}
- screen->DrawText(x, Pos().y, x + Size().w - 1, text, font, mColor, true, mScrollOffset);
+
+ if (updateScroll) {
+ w += font->Width(" ");
+ std::string textdoubled = text + " " + text;
+ screen->DrawText(x, Pos().y, x + Size().w - 1, textdoubled, font, mColor, true, mScrollOffset);
+ } else {
+ screen->DrawText(x, Pos().y, x + Size().w - 1, text, font, mColor, true, mScrollOffset);
+ }
if (updateScroll) {
mScrollOffset += currScrollSpeed;