summaryrefslogtreecommitdiff
path: root/displaymenu.c
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-06-18 18:08:24 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-07-16 15:33:54 +0200
commitb95711c610153f743073bd2edb5fe14cbd14c7e1 (patch)
treec792d75a875877cada0d39e57624f11b16708f22 /displaymenu.c
parentd347ce0d3b4c844320ce6a60cfc93454c990c430 (diff)
downloadskin-lcarsng-b95711c610153f743073bd2edb5fe14cbd14c7e1.tar.gz
skin-lcarsng-b95711c610153f743073bd2edb5fe14cbd14c7e1.tar.bz2
Small optical change
Diffstat (limited to 'displaymenu.c')
-rw-r--r--displaymenu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/displaymenu.c b/displaymenu.c
index e845222..f055c76 100644
--- a/displaymenu.c
+++ b/displaymenu.c
@@ -1759,19 +1759,23 @@ void cDrawDescription::Draw(void)
y0 = y0 + 1.3 * lineHeight;
}
+ bool space = false;
#if (APIVERSNUM >= 20505)
if (Recording && Info->Errors() >= 0) {
cString buffer = cString::sprintf("%s %i ", tr("TS Errors:"), Info->Errors());
w = font->Width(buffer);
BracketPixmap->DrawText(cPoint(x00 + textwidth - w, y00), buffer, Theme.Color(clrMenuMainBracket), textColorBg, font, w); // error in recording
+ space = true;
}
#endif
if (!isempty(shortText)) {
BracketPixmap->DrawText(cPoint(x00, y00), shortText, aI.shortTextColorFg, textColorBg, font, textwidth - w); // shorttext
- y0 = y0 + 1.3 * lineHeight;
+ space = true;
}
+ if (space)
+ y0 = y0 + 1.3 * lineHeight;
y0 = y0 + 0.4 * lineHeight;
wrapper.Set(s, font, textwidth);