From 6ddb70e008d1b82890936f4ee40d37fe789b4e61 Mon Sep 17 00:00:00 2001 From: Martin Schirrmacher Date: Mon, 30 Jun 2014 18:20:31 +0200 Subject: clear topbar scroller --- baserender.c | 2 ++ textscroller.h | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/baserender.c b/baserender.c index 233d397e..fa79a01d 100644 --- a/baserender.c +++ b/baserender.c @@ -126,6 +126,7 @@ void cFlatBaseRender::TopBarCreate(void) { topBarScroller.SetScrollStep( Config.ScrollerStep ); topBarScroller.SetScrollDelay( Config.ScrollerDelay ); topBarScroller.SetScrollType( Config.ScrollerType ); + topBarScroller.Clear(); if( Config.DiskUsageShow == 3) TopBarEnableDiskUsage(); @@ -377,6 +378,7 @@ void cFlatBaseRender::TopBarUpdate(void) { } TitleWidth = TitleWidthLeft; } else { + topBarScroller.Clear(); /* int dotsWidth = topBarFont->Width("... "); cTextWrapper TitleWrapper(topBarTitle, topBarFont, TitleWidthLeft - dotsWidth); topBarTitle = TitleWrapper.GetLine(0); diff --git a/textscroller.h b/textscroller.h index 4e428987..b782ad81 100644 --- a/textscroller.h +++ b/textscroller.h @@ -34,7 +34,6 @@ public: isReserveStep = false; WAITSTEPS = waitsteps; ResetX = false; - dsyslog("waitSteps: %d", waitSteps); } cTextScroll(cOsd *osd, int type, int pixels, int waitsteps) { Font = NULL; -- cgit v1.2.3