From 87fafc9d6531a2fcb06190005d0486aaf8fe1dc7 Mon Sep 17 00:00:00 2001 From: kamel5 Date: Thu, 19 Aug 2021 12:18:54 +0200 Subject: Description fits better in window Adds a gap at the beginning of the description text --- displaymenu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/displaymenu.c b/displaymenu.c index 77c8cae..60b504d 100644 --- a/displaymenu.c +++ b/displaymenu.c @@ -1815,6 +1815,7 @@ void cDrawDescription::Draw(void) w = font->Width(buffer); BracketPixmap->DrawText(cPoint(x00 + textwidth - w, y00), buffer, Theme.Color(clrMenuMainBracket), textColorBg, font, w); // error in recording space = true; + w += Gap; } #endif @@ -1827,7 +1828,7 @@ void cDrawDescription::Draw(void) y0 = y0 + 1.3 * lineHeight; y0 = y0 + 0.4 * lineHeight; - wrapper.Set(s, font, textwidth); + wrapper.Set(s, font, textwidth - Gap); int l0 = wrapper.Lines(); // textlines int height = y1 - y0; // max height -- cgit v1.2.3