summaryrefslogtreecommitdiff
path: root/displaychannelview.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-02 15:41:14 +0100
committerlouis <louis.braun@gmx.de>2013-11-02 15:41:14 +0100
commita88f6ef3401bb3c43392583d41e2aadc28150606 (patch)
treed1dc2ce7be37de788159f1ffe703372a251de2a4 /displaychannelview.c
parentfd6d769a610a5103e73c645eba53536ca37662d4 (diff)
downloadskin-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.c8
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);
}