CScanTs::paintLine: fix size calculation for font box

Origin commit data
------------------
Branch: ni/coolstream
Commit: 6897cdbd18
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2018-02-04 (Sun, 04 Feb 2018)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2018-02-04 17:56:53 +01:00
committed by vanhofen
parent 82446ebc91
commit 00989cfd53

View File

@@ -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); //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); 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) void CScanTs::paint(bool fortest)