summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-06-05 12:14:14 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-06-09 13:51:21 +0200
commitba6738dc00d068e5c54aae1cc3c9a8ea93681a91 (patch)
treeeea7b391c89f64321e2c6383f328098bc44c5373
parent367119fbd656039e30d4bccfffd000bfb31759b3 (diff)
downloadskin-nopacity-ba6738dc00d068e5c54aae1cc3c9a8ea93681a91.tar.gz
skin-nopacity-ba6738dc00d068e5c54aae1cc3c9a8ea93681a91.tar.bz2
No use of channelBorderVertical and channelBorderBottom in DisplayChannel
This values can better used in GeometryManager.
-rw-r--r--displaychannelview.c4
-rw-r--r--geometrymanager.c15
2 files changed, 8 insertions, 11 deletions
diff --git a/displaychannelview.c b/displaychannelview.c
index 03debb2..840716a 100644
--- a/displaychannelview.c
+++ b/displaychannelview.c
@@ -515,8 +515,8 @@ void cNopacityDisplayChannelView::DrawPoster(const cEvent *event, bool initial)
} else
return;
int border = config.GetValue("channelPosterBorder");
- pixmapPoster = osd->CreatePixmap(1, cRect(config.GetValue("channelBorderVertical"),
- config.GetValue("channelBorderBottom"),
+ pixmapPoster = osd->CreatePixmap(1, cRect(0,
+ 0,
mediaWidth + 2 * border,
mediaHeight + 2 * border));
if (initial && config.GetValue("animation") && config.GetValue("channelFadeTime")) {
diff --git a/geometrymanager.c b/geometrymanager.c
index 9bc7c4c..552aa61 100644
--- a/geometrymanager.c
+++ b/geometrymanager.c
@@ -99,22 +99,19 @@ void cGeometryManager::SetGeometry(void) {
menuTimersLogoHeight = timersLogoSize.Height();
// DisplayChannel Sizes
- channelOsdLeft = osdLeft;
- channelOsdTop = osdTop;
- channelOsdWidth = osdWidth;
- channelOsdHeight = osdHeight - config.GetValue("channelBorderBottom");
+ channelOsdLeft = osdLeft + config.GetValue("channelBorderVertical");
+ channelOsdTop = osdTop + config.GetValue("channelBorderBottom");
+ channelOsdWidth = osdWidth - 2 * config.GetValue("channelBorderVertical");
+ channelOsdHeight = osdHeight - 2 * config.GetValue("channelBorderBottom");
- channelX = config.GetValue("channelBorderVertical");
- channelWidth = channelOsdWidth - 2 * config.GetValue("channelBorderVertical");
+ channelX = 0;
+ channelWidth = channelOsdWidth;
channelHeight = channelOsdHeight * config.GetValue("channelHeight") / 100;
channelTop = channelOsdHeight - channelHeight;
if (!(config.GetValue("scraperInfo") && config.GetValue("displayPoster"))) {
- channelOsdLeft += channelX;
channelOsdTop += channelTop;
- channelOsdWidth = channelWidth;
channelOsdHeight = channelHeight;
- channelX = 0;
channelTop = 0;
}