display of additional EPG pictures in detailed epg view

This commit is contained in:
louis
2013-06-03 09:52:54 +02:00
parent d2e13f083b
commit e87e589416
11 changed files with 115 additions and 13 deletions

View File

@@ -44,6 +44,21 @@ bool cImageLoader::LoadEPGImage(int eventID) {
return true;
}
bool cImageLoader::LoadAdditionalEPGImage(cString name) {
int width = tvguideConfig.epgImageWidthLarge;
int height = tvguideConfig.epgImageHeightLarge;
if ((width == 0)||(height==0))
return false;
bool success = false;
success = LoadImage(name, tvguideConfig.epgImagePath, "jpg");
if (!success)
return false;
if (height != 0 || width != 0) {
buffer.sample( Geometry(width, height));
}
return true;
}
bool cImageLoader::DrawBackground(tColor back, tColor blend, int width, int height) {
if ((width < 1) || (height < 1))
return false;