From 00989cfd53a63d128b0e46cb60c3805eff7ab22c Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 4 Feb 2018 17:56:53 +0100 Subject: [PATCH] CScanTs::paintLine: fix size calculation for font box Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/6897cdbd1802c0889e4853aa8547bd4bba9f3a42 Author: Stefan Seyfried Date: 2018-02-04 (Sun, 04 Feb 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/scan.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/scan.cpp b/src/gui/scan.cpp index 46d9aee29..d1058f7d7 100644 --- a/src/gui/scan.cpp +++ b/src/gui/scan.cpp @@ -531,7 +531,7 @@ void CScanTs::paintLine(int px, int py, int w, const char * const txt) { //printf("CScanTs::paintLine x %d y %d w %d width %d xpos2 %d: %s\n", px, py, w, width, xpos2, txt); frameBuffer->paintBoxRel(px, py, w, mheight, COL_MENUCONTENT_PLUS_0); - g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(px+2, py + mheight, w, txt, COL_MENUCONTENT_TEXT); + g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(px + 2, py + mheight, w - 2, txt, COL_MENUCONTENT_TEXT); } void CScanTs::paint(bool fortest)