diff --git a/src/examples/AnimateMasking.cpp b/src/examples/AnimateMasking.cpp index 7f1ba236..48cbe709 100644 --- a/src/examples/AnimateMasking.cpp +++ b/src/examples/AnimateMasking.cpp @@ -103,7 +103,7 @@ void tvgUpdateCmds(tvg::Canvas* canvas, float progress) You can update only necessary properties of this shape, while retaining other properties. */ - // Translate mask object with its stroke & update + // Translate mask object with its stroke & update pMaskShape->translate(0 , progress * 300); pMask->translate(0 , progress * 300); diff --git a/src/examples/GradientMasking.cpp b/src/examples/GradientMasking.cpp index bafc21a3..b8b88ea0 100644 --- a/src/examples/GradientMasking.cpp +++ b/src/examples/GradientMasking.cpp @@ -47,7 +47,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) colorStops[1] = {1,255,255,255,255}; fill->colorStops(colorStops,2); shape->fill(move(fill)); - + shape->composite(move(mask), tvg::CompositeMethod::AlphaMask); canvas->push(move(shape)); @@ -79,7 +79,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) colorStops1[1] = {1,1,255,255,255}; fill1->colorStops(colorStops1,2); shape1->fill(move(fill1)); - + shape1->composite(move(mask1), tvg::CompositeMethod::AlphaMask); canvas->push(move(shape1)); @@ -237,7 +237,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/GradientStroke.cpp b/src/examples/GradientStroke.cpp index 8b04aa2d..6e2b97ee 100644 --- a/src/examples/GradientStroke.cpp +++ b/src/examples/GradientStroke.cpp @@ -77,7 +77,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) if (canvas->push(move(shape1)) != tvg::Result::Success) return; - // radial gradient stroke + duplicate + // radial gradient stroke + duplicate auto shape2 = tvg::Shape::gen(); shape2->appendCircle(600, 175, 100, 60); shape2->stroke(80); diff --git a/src/examples/InvMasking.cpp b/src/examples/InvMasking.cpp index cd4b0a32..4b6eb318 100644 --- a/src/examples/InvMasking.cpp +++ b/src/examples/InvMasking.cpp @@ -212,7 +212,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/LumaMasking.cpp b/src/examples/LumaMasking.cpp index 45b15489..cb32d1be 100644 --- a/src/examples/LumaMasking.cpp +++ b/src/examples/LumaMasking.cpp @@ -208,7 +208,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/Masking.cpp b/src/examples/Masking.cpp index 8b63b0ba..88be49a6 100644 --- a/src/examples/Masking.cpp +++ b/src/examples/Masking.cpp @@ -212,7 +212,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/MultiCanvas.cpp b/src/examples/MultiCanvas.cpp index 11b55e36..4625b37e 100644 --- a/src/examples/MultiCanvas.cpp +++ b/src/examples/MultiCanvas.cpp @@ -178,7 +178,7 @@ void tvgGlTest(const char* name, const char* path, void* data) objData->name = strdup(name); objData->path = strdup(path); - Eo* win = (Eo*) data; + Eo* win = (Eo*) data; Eo* view = elm_glview_add(win); elm_glview_mode_set(view, ELM_GLVIEW_ALPHA); @@ -189,7 +189,7 @@ void tvgGlTest(const char* name, const char* path, void* data) evas_object_data_set(view, "objdata", reinterpret_cast(objData)); evas_object_event_callback_add(view, EVAS_CALLBACK_DEL, gl_del, objData); evas_object_resize(view, SIZE, SIZE); - evas_object_move(view, (count % NUM_PER_LINE) * SIZE, SIZE * (count / NUM_PER_LINE)); + evas_object_move(view, (count % NUM_PER_LINE) * SIZE, SIZE * (count / NUM_PER_LINE)); evas_object_show(view); } @@ -238,7 +238,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/PictureJpg.cpp b/src/examples/PictureJpg.cpp index df56f3e2..c04b34bf 100644 --- a/src/examples/PictureJpg.cpp +++ b/src/examples/PictureJpg.cpp @@ -169,7 +169,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { diff --git a/src/examples/PicturePng.cpp b/src/examples/PicturePng.cpp index 0cbaedb4..b43926ad 100644 --- a/src/examples/PicturePng.cpp +++ b/src/examples/PicturePng.cpp @@ -31,7 +31,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) { if (!canvas) return; - //Background + //Background auto bg = tvg::Shape::gen(); bg->appendRect(0, 0, WIDTH, HEIGHT, 0, 0); //x, y, w, h, rx, ry bg->fill(255, 255, 255, 255); //r, g, b, a @@ -175,7 +175,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { diff --git a/src/examples/PictureRaw.cpp b/src/examples/PictureRaw.cpp index dcb86fce..ea6de16e 100644 --- a/src/examples/PictureRaw.cpp +++ b/src/examples/PictureRaw.cpp @@ -169,7 +169,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/Stress.cpp b/src/examples/Stress.cpp index 004561bf..cd8843d2 100644 --- a/src/examples/Stress.cpp +++ b/src/examples/Stress.cpp @@ -236,7 +236,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/Svg.cpp b/src/examples/Svg.cpp index be4f3578..53e95020 100644 --- a/src/examples/Svg.cpp +++ b/src/examples/Svg.cpp @@ -181,7 +181,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/Svg2.cpp b/src/examples/Svg2.cpp index a7c97da1..011816e1 100644 --- a/src/examples/Svg2.cpp +++ b/src/examples/Svg2.cpp @@ -147,7 +147,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl; diff --git a/src/examples/Tvg.cpp b/src/examples/Tvg.cpp index 51c6af8a..5512f43d 100644 --- a/src/examples/Tvg.cpp +++ b/src/examples/Tvg.cpp @@ -181,7 +181,7 @@ int main(int argc, char **argv) elm_shutdown(); //Terminate ThorVG Engine - tvg::Initializer::term(tvg::CanvasEngine::Sw); + tvg::Initializer::term(tvgEngine); } else { cout << "engine is not supported" << endl;