Version 0.0.6

This commit is contained in:
louis
2013-07-09 00:17:42 +02:00
parent 6da4b610d9
commit 2a7a011055
61 changed files with 5564 additions and 201 deletions

View File

@@ -59,8 +59,19 @@ bool cImageLoader::LoadAdditionalEPGImage(cString name) {
return true;
}
bool cImageLoader::LoadIcon(const char *cIcon, int size) {
if (size==0)
return false;
bool success = false;
success = LoadImage(cString(cIcon), tvguideConfig.iconPath, "png");
if (!success)
return false;
buffer.sample(Geometry(size, size));
return true;
}
bool cImageLoader::DrawBackground(tColor back, tColor blend, int width, int height) {
if ((width < 1) || (height < 1))
if ((width < 1) || (height < 1) || (width > 1920) || (height > 1080))
return false;
Color Back = Argb2Color(back);
Color Blend = Argb2Color(blend);