minor fixes

This commit is contained in:
Mateusz Palkowski 2021-03-22 10:33:51 +01:00 committed by Hermet Park
parent 1046ed2c40
commit ac3e848cfe
3 changed files with 2 additions and 4 deletions

View file

@ -1,5 +1,4 @@
#include "Common.h"
#include <fstream>
/************************************************************************/
/* Drawing Commands */
/************************************************************************/
@ -10,12 +9,11 @@ void tvgDrawCmds(tvg::Canvas* canvas)
for (int i = 0; i < 40; ++i) {
auto png = tvg::Picture::gen();
if (png->load(EXAMPLE_DIR"/../pngs/samsung.png") != tvg::Result::Success) return;
if (png->load(EXAMPLE_DIR"/samsung.png") != tvg::Result::Success) return;
png->translate(i* 5, i * 10);
png->rotate(10 * i);
if (canvas->push(move(png)) != tvg::Result::Success) return;
}
// if (canvas->push(move(png3)) != tvg::Result::Success) return;
}

View file

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -13,6 +13,7 @@ source_file = [
'GradientStroke.cpp',
'GradientTransform.cpp',
'LinearGradient.cpp',
'LoadPng.cpp',
'MultiCanvas.cpp',
'MultiShapes.cpp',
'Opacity.cpp',
@ -36,7 +37,6 @@ source_file = [
'InvMasking.cpp',
'GradientMasking.cpp',
'AnimateMasking.cpp',
'LoadPng.cpp',
]
foreach current_file : source_file