diff --git a/src/driver/lcdd.cpp b/src/driver/lcdd.cpp index 0921eee8c..d22b0a73d 100644 --- a/src/driver/lcdd.cpp +++ b/src/driver/lcdd.cpp @@ -7,7 +7,7 @@ Homepage: http://dbox.cyberphoria.org/ Copyright (C) 2008 Novell, Inc. Author: Stefan Seyfried - (C) 2009 Stefan Seyfried + (C) 2009-2012 Stefan Seyfried License: GPL @@ -543,7 +543,7 @@ void CLCD::showTextScreen(const std::string & big, const std::string & small, co displayUpdate(); } -void CLCD::showServicename(const std::string name, const bool perform_wakeup) +void CLCD::showServicename(const std::string name, const bool clear_epg) { /* 1 = show servicename @@ -558,11 +558,13 @@ void CLCD::showServicename(const std::string name, const bool perform_wakeup) if (!name.empty()) servicename = name; + if (clear_epg) + epg_title.clear(); if (mode != MODE_TVRADIO) return; - showTextScreen(servicename, epg_title, showmode, perform_wakeup, true); + showTextScreen(servicename, epg_title, showmode, true, true); return; } diff --git a/src/driver/lcdd.h b/src/driver/lcdd.h index f6183906b..53f71b65b 100644 --- a/src/driver/lcdd.h +++ b/src/driver/lcdd.h @@ -189,7 +189,7 @@ class CLCD void setMode(const MODES m, const char * const title = ""); MODES getMode() { return mode; }; - void showServicename(const std::string name, const bool perform_wakeup = true); // UTF-8 + void showServicename(const std::string name, const bool clear_epg = false); void setEPGTitle(const std::string title); void setMovieInfo(const AUDIOMODES playmode, const std::string big, const std::string small, const bool centered = false); void setMovieAudio(const bool is_ac3); @@ -234,7 +234,7 @@ class CLCD void Unlock(); void Clear(); void ShowIcon(vfd_icon icon, bool show); - void ShowText(const char *s) { showServicename(std::string(s)); }; + void ShowText(const char *s) { showServicename(std::string(s), true); }; #ifndef HAVE_TRIPLEDRAGON ~CLCD(); #endif