diff options
author | louis <louis.braun@gmx.de> | 2014-11-15 11:15:48 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2014-11-15 11:15:48 +0100 |
commit | 0ed710a86884136a7bd772322f13f0b176a5dc22 (patch) | |
tree | cd4ae6f14b29988d35ce67acb9012c610348bc95 /views | |
parent | f225c38103013faf38512cc61362cf9bb9088ba6 (diff) | |
parent | 7a69d868c422218817f1c92a6666ee6c83825d23 (diff) | |
download | vdr-plugin-skindesigner-0.0.5.tar.gz vdr-plugin-skindesigner-0.0.5.tar.bz2 |
Version 0.0.5 - added SVG Support0.0.5
Diffstat (limited to 'views')
-rw-r--r-- | views/view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/views/view.c b/views/view.c index 75a24e0..864eb45 100644 --- a/views/view.c +++ b/views/view.c @@ -711,8 +711,10 @@ void cView::DoDrawImage(int num, cTemplateFunction *func, int x0, int y0) { break; }
case itImage: {
cImageLoader imgLoader;
- if (imgLoader.LoadImage(path.c_str(), width, height)) {
- DrawImage(num, pos, imgLoader.GetImage());
+ if (imgLoader.LoadImage(path.c_str())) {
+ cImage *image = imgLoader.CreateImage(width, height);
+ DrawImage(num, pos, *image);
+ delete(image);
}
break; }
default:
|