diff options
-rw-r--r-- | displayreplay.c | 3 | ||||
-rw-r--r-- | displayreplay.h | 1 |
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; |