From f7cd956b509dee926a99fb37b014b39e2f032431 Mon Sep 17 00:00:00 2001 From: Jacek Jendrzej Date: Tue, 15 Dec 2015 20:03:07 +0100 Subject: [PATCH] src/gui/streaminfo2.cpp show max 16 apids Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/3a64f6c23018d2ffffb5d1bd6c80b91cfa45f39f Author: Jacek Jendrzej Date: 2015-12-15 (Tue, 15 Dec 2015) --- src/gui/streaminfo2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 14b20e61e..289fbf0cc 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -724,7 +724,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) sprintf(buf, "%s", g_Locale->getText(LOCALE_STREAMINFO_NOT_AVAILABLE)); } else { unsigned int sw=spaceoffset; - for (unsigned int li= 0; (licurrent_PIDs.APIDs.size()) && (li<10); li++) + for (unsigned int li= 0; (licurrent_PIDs.APIDs.size()) && (li<16); li++) { sprintf(buf, "0x%04X (%i)", g_RemoteControl->current_PIDs.APIDs[li].pid, g_RemoteControl->current_PIDs.APIDs[li].pid ); if (li == g_RemoteControl->current_PIDs.PIDs.selected_apid){ @@ -734,7 +734,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) g_Font[font_small]->RenderString(xpos+sw, ypos, box_width, buf, COL_INFOBAR_TEXT); } sw = g_Font[font_small]->getRenderWidth(buf)+sw+10; - if (((li+1)%3 == 0) &&(g_RemoteControl->current_PIDs.APIDs.size()-1 > li)){ // if we have lots of apids, put "intermediate" line with pids + if (((li+1)%4 == 0) &&(g_RemoteControl->current_PIDs.APIDs.size()-1 > li)){ // if we have lots of apids, put "intermediate" line with pids ypos+= sheight; sw=spaceoffset; }