diff options
author | louis <louis.braun@gmx.de> | 2013-11-02 15:41:14 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-02 15:41:14 +0100 |
commit | a88f6ef3401bb3c43392583d41e2aadc28150606 (patch) | |
tree | d1dc2ce7be37de788159f1ffe703372a251de2a4 /displaychannelview.c | |
parent | fd6d769a610a5103e73c645eba53536ca37662d4 (diff) | |
download | skin-nopacity-a88f6ef3401bb3c43392583d41e2aadc28150606.tar.gz skin-nopacity-a88f6ef3401bb3c43392583d41e2aadc28150606.tar.bz2 |
Improved Display of Poster or Banner in displaychannel
Diffstat (limited to 'displaychannelview.c')
-rw-r--r-- | displaychannelview.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/displaychannelview.c b/displaychannelview.c index e9041bd..96eddaa 100644 --- a/displaychannelview.c +++ b/displaychannelview.c @@ -581,16 +581,18 @@ void cNopacityDisplayChannelView::DrawPoster(const cEvent *event, bool initial) mediaWidth = ratio * call.media.width; mediaHeight = ratio * call.media.height; } + int border = config.GetValue("channelPosterBorder"); pixmapPoster = osd->CreatePixmap(1, cRect(config.GetValue("channelBorderVertical"), config.GetValue("channelBorderBottom"), - mediaWidth + 2*config.GetValue("channelBorderVertical"), - mediaHeight + 2*config.GetValue("channelBorderBottom"))); + mediaWidth + 2 * border, + mediaHeight + 2 * border)); if (initial && config.GetValue("channelFadeTime")) pixmapPoster->SetAlpha(0); cImageLoader imgLoader; if (imgLoader.LoadPoster(call.media.path.c_str(), mediaWidth, mediaHeight)) { pixmapPoster->Fill(Theme.Color(clrChannelBackground)); - pixmapPoster->DrawImage(cPoint(config.GetValue("channelBorderVertical"), config.GetValue("channelBorderBottom")), imgLoader.GetImage()); + pixmapPoster->DrawImage(cPoint(border, border), imgLoader.GetImage()); + DrawRoundedCorners(pixmapPoster, border, 0, 0, pixmapPoster->ViewPort().Width(), pixmapPoster->ViewPort().Height()); } else { pixmapPoster->Fill(clrTransparent); } |