mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Cosmetic change in geometrymanager.c
This commit is contained in:
parent
8e26759d4e
commit
d8663ff309
@ -12,19 +12,19 @@ cGeometryManager::~cGeometryManager() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool cGeometryManager::SetGeometry(int osdWidth, int osdHeight, bool force) {
|
bool cGeometryManager::SetGeometry(int osdWidth, int osdHeight, bool force) {
|
||||||
if (!force && (this->osdWidth == osdWidth) && (this->osdHeight == osdHeight)) {
|
if (!force && (this->osdWidth == osdWidth) && (this->osdHeight == osdHeight)) {
|
||||||
esyslog("tvgudie: GeoManager SetGeometry nothing to change");
|
esyslog("tvgudie: GeoManager SetGeometry nothing to change");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this->osdWidth = osdWidth;
|
this->osdWidth = osdWidth;
|
||||||
this->osdHeight = osdHeight;
|
this->osdHeight = osdHeight;
|
||||||
esyslog("tvguide: Set OSD to %d x %d px", osdWidth, 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;
|
tvFrameWidth = statusHeaderHeight * 16 / 9;
|
||||||
headerContentWidth = (config.scaleVideo) ? (osdWidth - tvFrameWidth):osdWidth;
|
headerContentWidth = (config.scaleVideo) ? (osdWidth - tvFrameWidth):osdWidth;
|
||||||
channelGroupsWidth = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdWidth / 100):0;
|
channelGroupsWidth = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdWidth / 100) : 0;
|
||||||
channelGroupsHeight = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdHeight / 100):0;
|
channelGroupsHeight = (config.displayChannelGroups) ? (config.channelGroupsPercent * osdHeight / 100) : 0;
|
||||||
channelHeaderWidth = config.channelHeaderWidthPercent * osdWidth / 100;
|
channelHeaderWidth = config.channelHeaderWidthPercent * osdWidth / 100;
|
||||||
channelHeaderHeight = config.channelHeaderHeightPercent * osdHeight / 100;
|
channelHeaderHeight = config.channelHeaderHeightPercent * osdHeight / 100;
|
||||||
timeLineWidth = config.timeLineWidthPercent * osdWidth / 100;
|
timeLineWidth = config.timeLineWidthPercent * osdWidth / 100;
|
||||||
|
Loading…
Reference in New Issue
Block a user