From c47fb40c9e8b8dbbe5125119feb4db324edb6778 Mon Sep 17 00:00:00 2001 From: Martin Schirrmacher Date: Tue, 24 Jun 2014 21:44:47 +0200 Subject: scroller for topbar and messages --- displaychannel.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'displaychannel.c') diff --git a/displaychannel.c b/displaychannel.c index af8c34b7..3060b9f8 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -83,6 +83,9 @@ cFlatDisplayChannel::cFlatDisplayChannel(bool WithInfo) { chanInfoTopPixmap->Fill( clrTransparent ); scrollers.SetOsd(osd); + scrollers.SetScrollStep( Config.ScrollerStep ); + scrollers.SetScrollDelay( Config.ScrollerDelay ); + scrollers.SetScrollType( Config.ScrollerType ); DecorBorderDraw(Config.decorBorderChannelSize, Config.decorBorderChannelSize+channelHeight - height, channelWidth, heightTop + heightBottom + Config.decorProgressChannelSize+marginItem*2, @@ -93,6 +96,8 @@ cFlatDisplayChannel::~cFlatDisplayChannel() { if( !doOutput ) return; if (osd) { + scrollers.Clear(); + if( chanInfoTopPixmap ) osd->DestroyPixmap(chanInfoTopPixmap); if( chanInfoBottomPixmap ) -- cgit v1.2.3