summaryrefslogtreecommitdiff
path: root/displaychannelview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-02 15:57:41 +0100
committerlouis <louis.braun@gmx.de>2013-11-02 15:57:41 +0100
commit0073ee74eb570193982577c1162d5cfcd55946e7 (patch)
treee90e07962c4f483f49d32a33a1ea74f00d550c2e /displaychannelview.c
parenta88f6ef3401bb3c43392583d41e2aadc28150606 (diff)
downloadskin-nopacity-0073ee74eb570193982577c1162d5cfcd55946e7.tar.gz
skin-nopacity-0073ee74eb570193982577c1162d5cfcd55946e7.tar.bz2
implemented cDisplayChannel::SetMessage()
Diffstat (limited to 'displaychannelview.c')
-rw-r--r--displaychannelview.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/displaychannelview.c b/displaychannelview.c
index 96eddaa..a343d06 100644
--- a/displaychannelview.c
+++ b/displaychannelview.c
@@ -784,4 +784,13 @@ void cNopacityDisplayChannelView::DrawSourceInfo(const cChannel *Channel) {
void cNopacityDisplayChannelView::ClearSourceInfo(void) {
pixmapSourceInfo->Fill(clrTransparent);
+}
+
+void cNopacityDisplayChannelView::DisplayMessage(const char *Text) {
+ if (!Text)
+ return;
+ int textWidth = fontManager->channelEPG->Width(Text);
+ int x = (geoManager->channelContentWidth - textWidth)/2;
+ int y = (geoManager->channelEpgInfoHeight - fontManager->channelEPG->Height())/2;
+ pixmapEPGInfo->DrawText(cPoint(x, y), Text, Theme.Color(clrChannelEPG), clrTransparent, fontManager->channelEPG);
} \ No newline at end of file