summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-06 19:37:11 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-07-07 13:28:23 +0200
commita9a233cd8a9871d659fb2cd2b56b754e9fead06a (patch)
tree6ac81ffeafc72285a70f89232b6c0c4da57bbb60
parent1f1060d0ec9d791c33e1c4c9e9e2fc86b9ccfbd3 (diff)
downloadskin-lcarsng-a9a233cd8a9871d659fb2cd2b56b754e9fead06a.tar.gz
skin-lcarsng-a9a233cd8a9871d659fb2cd2b56b754e9fead06a.tar.bz2
Correct Hight of recording icon
-rw-r--r--displayreplay.c3
-rw-r--r--displayreplay.h1
2 files changed, 3 insertions, 1 deletions
diff --git a/displayreplay.c b/displayreplay.c
index d995ef6..d5dee0c 100644
--- a/displayreplay.c
+++ b/displayreplay.c
@@ -52,6 +52,7 @@ cLCARSNGDisplayReplay::cLCARSNGDisplayReplay(bool ModeOnly):cThread("LCARS Displ
const cFont *font = cFont::GetFont(fontOsd);
modeOnly = ModeOnly;
lineHeight = font->Height();
+ iconHeight = bmRecording.Height();
frameColor = Theme.Color(clrReplayFrameBg);
lastCurrentWidth = 0;
lastTotalWidth = 0;
@@ -84,7 +85,7 @@ cLCARSNGDisplayReplay::cLCARSNGDisplayReplay(bool ModeOnly):cThread("LCARS Displ
yp04 = yp03 + Gap;
yp09 = yp04 + 3 * lineHeight + Gap / 2;
- yp08 = yp09 - lineHeight;
+ yp08 = yp09 - max(lineHeight, iconHeight);
yp07 = yp08 - lineHeight;
yp06 = yp08 - d / 4;
yp05 = yp09 - d / 2;
diff --git a/displayreplay.h b/displayreplay.h
index b0c9f2a..f52e363 100644
--- a/displayreplay.h
+++ b/displayreplay.h
@@ -29,6 +29,7 @@ private:
int xp00, xp01, xp02, xp03, xp04, xp05, xp06, xp07, xp08, xp09, xp10, xp11, xp12, xp13, xp14, xp15;
int yp00, yp01, yp02, yp03, yp04, yp05, yp06, yp07, yp08, yp09;
bool modeOnly;
+ int iconHeight;
int lineHeight;
tColor frameColor;
int lastCurrentWidth;