diff options
| author | louis <louis.braun@gmx.de> | 2014-12-06 10:13:06 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2014-12-06 10:13:06 +0100 |
| commit | 974ca74366af7ab022c1fb79c4d36e1e0b4e4d14 (patch) | |
| tree | c45276da41b4117fa920c2fbebcc1ee8b50efaaa /libtemplate/template.c | |
| parent | 7b538a7be703c70625b38644dfc8d6c04f11af2c (diff) | |
| parent | 28fd2f5e1a5c88a91caeb4c7bd363dbaffad3789 (diff) | |
| download | vdr-plugin-skindesigner-974ca74366af7ab022c1fb79c4d36e1e0b4e4d14.tar.gz vdr-plugin-skindesigner-974ca74366af7ab022c1fb79c4d36e1e0b4e4d14.tar.bz2 | |
Merge branch 'master' of projects.vdr-developer.org:vdr-plugin-skindesigner
Diffstat (limited to 'libtemplate/template.c')
| -rw-r--r-- | libtemplate/template.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libtemplate/template.c b/libtemplate/template.c index ef7d677..e6141f2 100644 --- a/libtemplate/template.c +++ b/libtemplate/template.c @@ -250,6 +250,8 @@ void cTemplate::CachePixmapImages(cTemplatePixmap *pix) { while(func = pix->GetNextFunction()) { if (func->GetType() == ftDrawImage) { CacheImage(func); + } else if (func->GetType() == ftDrawEllipse) { + CacheEllipse(func); } } } @@ -279,3 +281,12 @@ void cTemplate::CacheImage(cTemplateFunction *func) { break; } } + +void cTemplate::CacheEllipse(cTemplateFunction *func) { + int id = func->GetId(); + int w = func->GetNumericParameter(ptWidth); + int h = func->GetNumericParameter(ptHeight); + tColor clr = func->GetColorParameter(ptColor); + int quadrant = func->GetNumericParameter(ptQuadrant); + imgCache->CacheEllipse(id, w, h, clr, quadrant); +} |
