From 29bc4d7b584762d7b9ed970d594c2ca6a02c3f2b Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Sun, 1 Sep 2013 15:59:42 +0200 Subject: [PATCH] fix width string size Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/9b237df1c01dbf2e04aa8d2073363f7f8d722fe3 Author: Jacek Jendrzej Date: 2013-09-01 (Sun, 01 Sep 2013) Origin message was: ------------------ fix width string size --- src/gui/streaminfo2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 983684298..4d611a687 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -270,7 +270,7 @@ void CStreamInfo2::paint_signal_fe_box(int _x, int _y, int w, int h) char tname[255]; snprintf(tname, sizeof(tname), "%s: %d: %s", g_Locale->getText(LOCALE_STREAMINFO_SIGNAL), tuner, frontend->getInfo()->name); - g_Font[font_small]->RenderString(_x, _y+iheight+15, width-10, tname /*tuner_name.c_str()*/, COL_INFOBAR_TEXT, 0, true); + g_Font[font_small]->RenderString(_x, _y+iheight+15, width-_x-10, tname /*tuner_name.c_str()*/, COL_INFOBAR_TEXT, 0, true); sigBox_x = _x; sigBox_y = _y+iheight+15;