diff options
Diffstat (limited to 'geometrymanager.c')
-rw-r--r-- | geometrymanager.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/geometrymanager.c b/geometrymanager.c index d979ab5..4dc5c6b 100644 --- a/geometrymanager.c +++ b/geometrymanager.c @@ -99,11 +99,25 @@ void cGeometryManager::SetGeometry(void) { menuTimersLogoHeight = timersLogoSize.Height(); // DisplayChannel Sizes + channelOsdLeft = osdLeft; + channelOsdTop = osdTop; + channelOsdWidth = osdWidth; + channelOsdHeight = osdHeight; + channelX = config.GetValue("channelBorderVertical"); channelWidth = osdWidth - 2 * config.GetValue("channelBorderVertical"); channelHeight = osdHeight * config.GetValue("channelHeight") / 100; channelTop = osdHeight - channelHeight - config.GetValue("channelBorderBottom"); + if (!config.GetValue("displayPoster")) { + channelOsdLeft += channelX; + channelOsdTop += channelTop; + channelOsdWidth = channelWidth; + channelOsdHeight = channelHeight; + channelX = 0; + channelTop = 0; + } + channelHeaderHeight = 0.2 * channelHeight; channelFooterHeight = 0.2 * channelHeight; channelContentHeight = channelHeight - channelHeaderHeight - channelFooterHeight; |