mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
show event logos only in infoviewer
This commit is contained in:
@@ -529,7 +529,7 @@ void CPictureViewer::getSize(const char* name, int* width, int *height)
|
||||
}
|
||||
}
|
||||
|
||||
bool CPictureViewer::GetLogoName(const uint64_t &ChannelID, const std::string &ChannelName, std::string &name, int *width, int *height, bool lcd4l_mode)
|
||||
bool CPictureViewer::GetLogoName(const uint64_t &ChannelID, const std::string &ChannelName, std::string &name, int *width, int *height, bool lcd4l_mode, bool enable_event_logo)
|
||||
{
|
||||
std::string fileType[] = { ".png", ".jpg", ".gif" };
|
||||
std::vector<std::string> v_path;
|
||||
@@ -538,7 +538,7 @@ bool CPictureViewer::GetLogoName(const uint64_t &ChannelID, const std::string &C
|
||||
// create eventname for eventlogos; Note: We don't process channellogos if any eventlogo was found.
|
||||
std::string EventName = "";
|
||||
int mode = CNeutrinoApp::getInstance()->getMode();
|
||||
if (ChannelID || mode == NeutrinoModes::mode_ts)
|
||||
if (enable_event_logo && (ChannelID || mode == NeutrinoModes::mode_ts))
|
||||
{
|
||||
// TODO: fix eventlogo in moviebrowser
|
||||
|
||||
|
@@ -67,7 +67,7 @@ class CPictureViewer
|
||||
static double m_aspect_ratio_correction;
|
||||
bool DisplayImage (const std::string & name, int posx, int posy, int width, int height, int transp=0 /*CFrameBuffer::TM_EMPTY*/);
|
||||
// bool DisplayLogo (uint64_t channel_id, int posx, int posy, int width, int height);
|
||||
bool GetLogoName(const uint64_t &ChannelID, const std::string &ChannelName, std::string &name, int *width = NULL, int *height = NULL, bool lcd4l_mode = false);
|
||||
bool GetLogoName(const uint64_t &ChannelID, const std::string &ChannelName, std::string &name, int *width = NULL, int *height = NULL, bool lcd4l_mode = false, bool enable_event_logo = false);
|
||||
fb_pixel_t * getImage (const std::string & name, int width, int height);
|
||||
fb_pixel_t * getIcon (const std::string & name, int *width, int *height);
|
||||
void getSize(const char *name, int* width, int *height);
|
||||
|
Reference in New Issue
Block a user