mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-09 14:13:43 +00:00
minor fixes
This commit is contained in:
parent
1046ed2c40
commit
ac3e848cfe
3 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue