summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-05-04 17:57:54 +0200
committerlouis <louis.braun@gmx.de>2013-05-04 17:57:54 +0200
commitdad5c5fcb10796b2dac05bf46905b11bf1cd7b1d (patch)
treefffc8ed33e75272bdb1403ba4a128499414559f4
parent993bdf2ed543d832eebb1de158134223254dc8ee (diff)
downloadskin-nopacity-dad5c5fcb10796b2dac05bf46905b11bf1cd7b1d.tar.gz
skin-nopacity-dad5c5fcb10796b2dac05bf46905b11bf1cd7b1d.tar.bz2
Fixed display of screen resolution icon in displayreplay
-rw-r--r--displayreplay.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/displayreplay.c b/displayreplay.c
index c0cabf8..ed2ea95 100644
--- a/displayreplay.c
+++ b/displayreplay.c
@@ -52,19 +52,19 @@ void cNopacityDisplayReplay::SetGeometry(void) {
if (headerHeight%2 != 0)
headerHeight++;
footerHeight = headerHeight;
- info2Height = 0.2 * height;
+ resolutionX = 10;
+ resolutionY = 5;
+ info2Height = max(headerHeight,config.resolutionIconSize+resolutionY*2-headerHeight);
progressBarHeight = 0.1 * height;
if (progressBarHeight%2 != 0)
progressBarHeight++;
currentHeight = progressBarHeight + config.fontReplay;
controlsHeight = height - headerHeight - info2Height - footerHeight - progressBarHeight;
-
+ if (controlsHeight < 11)
+ controlsHeight = 11;
infoWidth = 0.75 * width - config.resolutionIconSize - 10;
dateWidth = width - infoWidth;
- resolutionX = 10;
- resolutionY = 5;
-
jumpX = (width - 4 * controlsHeight)/2 + 5*controlsHeight;
jumpY = headerHeight + info2Height + progressBarHeight;
jumpWidth = width - jumpX;