Version 0.0.5 - added SVG Support

This commit is contained in:
louis
2014-11-15 11:15:48 +01:00
21 changed files with 804 additions and 593 deletions

View File

@@ -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: