diff options
Diffstat (limited to 'displaychannelview.c')
-rw-r--r-- | displaychannelview.c | 9 |
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 |