minor fixes
authorMateusz Palkowski <mateusz.palkowski@gmail.com>
Mon, 22 Mar 2021 09:33:51 +0000 (10:33 +0100)
committerJunsuChoi <jsuya.choi@samsung.com>
Fri, 2 Apr 2021 02:10:14 +0000 (11:10 +0900)
src/examples/LoadPng.cpp
src/examples/images/samsung.png [moved from src/examples/pngs/samsung.png with 100% similarity]
src/examples/meson.build

index dad51ba..0168d85 100644 (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;
 }
 
 
index 4d2ae0c..c1eb16b 100644 (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