mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
re arrange logos
This commit is contained in:
@@ -1107,9 +1107,15 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
r.val = buf;
|
r.val = buf;
|
||||||
v.push_back(r);
|
v.push_back(r);
|
||||||
|
|
||||||
// e2 channellogo
|
// special channellogo
|
||||||
r.key = "E2 Logo";
|
r.key = "Special Logo";
|
||||||
r.key += ": ";
|
r.key += ": ";
|
||||||
|
std::string SpecialChannelName = GetSpecialName(channel->getName());
|
||||||
|
snprintf(buf, sizeof(buf), "%s.png", SpecialChannelName.c_str());
|
||||||
|
r.val = buf;
|
||||||
|
v.push_back(r);
|
||||||
|
|
||||||
|
// e2 channellogo
|
||||||
char e2filename1[255];
|
char e2filename1[255];
|
||||||
e2filename1[0] = '\0';
|
e2filename1[0] = '\0';
|
||||||
char e2filename2[255];
|
char e2filename2[255];
|
||||||
@@ -1139,21 +1145,20 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
|||||||
(u_int) cc->getSatellitePosition());
|
(u_int) cc->getSatellitePosition());
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((std::string) e2filename1 != (std::string) e2filename2)
|
r.key = "E2 Logo 1";
|
||||||
snprintf(buf, sizeof(buf), "%s.png / %s.png", e2filename1, e2filename2);
|
r.key += ": ";
|
||||||
else
|
|
||||||
snprintf(buf, sizeof(buf), "%s.png", e2filename1);
|
snprintf(buf, sizeof(buf), "%s.png", e2filename1);
|
||||||
r.val = buf;
|
r.val = buf;
|
||||||
v.push_back(r);
|
v.push_back(r);
|
||||||
|
|
||||||
// special channellogo
|
if ((std::string) e2filename1 != (std::string) e2filename2) {
|
||||||
r.key = "Special Logo";
|
r.key = "E2 Logo 2";
|
||||||
r.key += ": ";
|
r.key += ": ";
|
||||||
std::string SpecialChannelName = GetSpecialName(channel->getName());
|
snprintf(buf, sizeof(buf), "%s.png", e2filename2);
|
||||||
snprintf(buf, sizeof(buf), "%s.png", SpecialChannelName.c_str());
|
|
||||||
r.val = buf;
|
r.val = buf;
|
||||||
v.push_back(r);
|
v.push_back(r);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// empty line
|
// empty line
|
||||||
r.key = r.val = "";
|
r.key = r.val = "";
|
||||||
|
Reference in New Issue
Block a user