summaryrefslogtreecommitdiff
path: root/geometrymanager.c
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 /geometrymanager.c
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.
Diffstat (limited to 'geometrymanager.c')
-rw-r--r--geometrymanager.c15
1 files changed, 6 insertions, 9 deletions
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;
}