diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-11-10 14:30:59 +0100 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2022-06-18 17:03:15 +0200 |
commit | d8663ff3096fcea38bf7d7b93dceec90a5fbabe2 (patch) | |
tree | 0728747527405e79240f7d89aa08afb557704ab1 | |
parent | 8e26759d4e039640645c2120b046f6cc611c7e21 (diff) | |
download | vdr-plugin-tvguide-d8663ff3096fcea38bf7d7b93dceec90a5fbabe2.tar.gz vdr-plugin-tvguide-d8663ff3096fcea38bf7d7b93dceec90a5fbabe2.tar.bz2 |
Cosmetic change in geometrymanager.c
-rw-r--r-- | geometrymanager.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/geometrymanager.c b/geometrymanager.c index a92f823..28e4e96 100644 --- a/geometrymanager.c +++ b/geometrymanager.c @@ -12,19 +12,19 @@ cGeometryManager::~cGeometryManager() { } bool cGeometryManager::SetGeometry(int osdWidth, int osdHeight, bool force) { - if (!force && (this->osdWidth == osdWidth) && (this->osdHeight == osdHeight)) { - esyslog("tvgudie: GeoManager SetGeometry nothing to change"); - return false; - } - this->osdWidth = osdWidth; - this->osdHeight = osdHeight; - esyslog("tvguide: Set OSD to %d x %d px", osdWidth, osdHeight); + if (!force && (this->osdWidth == osdWidth) && (this->osdHeight == osdHeight)) { + esyslog("tvgudie: GeoManager SetGeometry nothing to change"); + return false; + } + this->osdWidth = osdWidth; + this->osdHeight = osdHeight; + esyslog("tvguide: Set OSD to %d x %d px", osdWidth, osdHeight); - statusHeaderHeight = (config.displayStatusHeader) ? (config.headerHeightPercent * osdHeight / 100):0; + statusHeaderHeight = (config.displayStatusHeader) ? (config.headerHeightPercent * osdHeight / 100) : 0; tvFrameWidth = statusHeaderHeight * 16 / 9; headerContentWidth = (config.scaleVideo) ? (osdWidth - tvFrameWidth):osdWidth; - channelGroupsWidth = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdWidth / 100):0; - channelGroupsHeight = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdHeight / 100):0; + channelGroupsWidth = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdWidth / 100) : 0; + channelGroupsHeight = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdHeight / 100) : 0; channelHeaderWidth = config.channelHeaderWidthPercent * osdWidth / 100; channelHeaderHeight = config.channelHeaderHeightPercent * osdHeight / 100; timeLineWidth = config.timeLineWidthPercent * osdWidth / 100; |