summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2021-08-19 12:18:54 +0200
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-01-14 12:57:38 +0100
commit87fafc9d6531a2fcb06190005d0486aaf8fe1dc7 (patch)
tree9b448027bf7572f6f53ce0f2b528d3fb26ecd137
parent1d757b0b808c3b5a1caa1fe6d20164c181f6a1aa (diff)
downloadskin-lcarsng-87fafc9d6531a2fcb06190005d0486aaf8fe1dc7.tar.gz
skin-lcarsng-87fafc9d6531a2fcb06190005d0486aaf8fe1dc7.tar.bz2
Description fits better in window
Adds a gap at the beginning of the description text
-rw-r--r--displaymenu.c3
1 files changed, 2 insertions, 1 deletions
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