From cce127af68231c4924d7198856b8b52c1df52e67 Mon Sep 17 00:00:00 2001 From: Soeren Moch Date: Thu, 5 May 2022 18:23:45 +0200 Subject: Optimize channelview OSD size When displayPoster is disabled, most of the OSD area is not used in channelview. Reduze the requested osd size in this case. This helps to speed-up the display and reduces the variation in osd flush time, e.g. for animations. Signed-off-by: Soeren Moch --- geometrymanager.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'geometrymanager.c') 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; -- cgit v1.2.3