diff options
author | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-08 14:16:21 +0200 |
---|---|---|
committer | kamel5 <vdr.kamel5 (at) gmx (dot) net> | 2019-04-09 14:50:42 +0200 |
commit | 929d8db9bac0d1f7d698650b59d2b2e1aa4c6320 (patch) | |
tree | 2e8fe2ac91e5bdf8dcf63e2990aa1e16e273f7eb /geometrymanager.c | |
parent | 56250e3af8c4ae61f0e8325605744ee0a2ec4864 (diff) | |
download | vdr-plugin-tvguide-929d8db9bac0d1f7d698650b59d2b2e1aa4c6320.tar.gz vdr-plugin-tvguide-929d8db9bac0d1f7d698650b59d2b2e1aa4c6320.tar.bz2 |
Optical changes in displaymode vertical
Diffstat (limited to 'geometrymanager.c')
-rw-r--r-- | geometrymanager.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/geometrymanager.c b/geometrymanager.c index 94d47b7..72befa4 100644 --- a/geometrymanager.c +++ b/geometrymanager.c @@ -29,8 +29,6 @@ bool cGeometryManager::SetGeometry(int osdWidth, int osdHeight, bool force) { channelHeaderHeight = tvguideConfig.channelHeaderHeightPercent * osdHeight / 100;
timeLineWidth = tvguideConfig.timeLineWidthPercent * osdWidth / 100;
timeLineHeight = tvguideConfig.timeLineHeightPercent * osdHeight / 100;
- clockWidth = tvFrameWidth / 3;
- clockHeight = timeLineHeight;
footerHeight = tvguideConfig.footerHeightPercent * osdHeight / 100;
footerY = osdHeight - footerHeight;
@@ -43,9 +41,11 @@ bool cGeometryManager::SetGeometry(int osdWidth, int osdHeight, bool force) { logoWidth = channelLogoWidth/2 - 15;
logoHeight = logoWidth * tvguideConfig.logoHeightRatio / tvguideConfig.logoWidthRatio;
timeLineGridWidth = timeLineWidth;
- timeLineGridHeight = minutePixel*30;
+ timeLineGridHeight = minutePixel * 30;
dateVieverWidth = timeLineWidth;
- dateVieverHeight = channelHeaderHeight + channelGroupsHeight;
+ dateVieverHeight = (channelHeaderHeight + channelGroupsHeight) * 2 / 3;
+ clockWidth = dateVieverWidth;
+ clockHeight = (channelHeaderHeight + channelGroupsHeight) - dateVieverHeight;
} else if (tvguideConfig.displayMode == eHorizontal) {
colWidth = 0;
rowHeight = (osdHeight - statusHeaderHeight - timeLineHeight - footerHeight) / tvguideConfig.channelRows;
@@ -54,10 +54,12 @@ bool cGeometryManager::SetGeometry(int osdWidth, int osdHeight, bool force) { channelLogoHeight = rowHeight;
logoWidth = channelLogoHeight * tvguideConfig.logoWidthRatio / tvguideConfig.logoHeightRatio;
logoHeight = channelLogoHeight;
- timeLineGridWidth = geoManager.minutePixel*30;
+ timeLineGridWidth = geoManager.minutePixel * 30;
timeLineGridHeight = geoManager.timeLineHeight;
- dateVieverWidth = channelHeaderWidth + channelGroupsWidth;
+ dateVieverWidth = (channelHeaderWidth + channelGroupsWidth) * 3 / 5;
dateVieverHeight = timeLineHeight;
+ clockWidth = (channelHeaderWidth + channelGroupsWidth) - dateVieverWidth;
+ clockHeight = timeLineHeight;
}
buttonBorder = footerHeight / 6;
buttonWidth = osdWidth / 4 - 2 * buttonBorder;
@@ -71,4 +73,4 @@ bool cGeometryManager::SetGeometry(int osdWidth, int osdHeight, bool force) { channelJumpHeight = osdHeight * 20 / 100;
return true;
-}
\ No newline at end of file +}
|