From b95711c610153f743073bd2edb5fe14cbd14c7e1 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Fri, 18 Jun 2021 18:08:24 +0200 Subject: Small optical change --- displaymenu.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'displaymenu.c') 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); -- cgit v1.2.3