From 436764b05d7ae7f7ed88c40b8cd18a7b9db5d6e1 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Wed, 16 Dec 2015 12:00:35 +0100 Subject: [PATCH] src/gui/streaminfo2.cpp add show channel realname, thx Janus Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/c08a3394847b34978e027b74ed6030d14e2d1cc2 Author: Jacek Jendrzej Date: 2015-12-16 (Wed, 16 Dec 2015) --- src/gui/streaminfo2.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 289fbf0cc..150aa81f3 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -665,7 +665,8 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) ypos += iheight; sprintf (buf, "%s:",g_Locale->getText (LOCALE_TIMERLIST_CHANNEL));//swiped locale g_Font[font_info]->RenderString(xpos, ypos, box_width, buf , COL_INFOBAR_TEXT); - sprintf(buf, "%s", channel->getName().c_str()); + // process additional RealName if UserName exists >> uname.empty() ? realname : uname + realname + sprintf(buf, "%s", (channel->getName()==channel->getRealname()) ? channel->getRealname().c_str():(channel->getName()+" << "+channel->getRealname()).c_str()); g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width, buf, COL_INFOBAR_TEXT); //tsfrequenz