/*
- * Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. All rights reserved.
+ * Copyright (c) 2020 - 2023 the ThorVG project. All rights reserved.
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
if (canvas->push(move(shape)) != tvg::Result::Success) return;
auto picture = tvg::Picture::gen();
- if (picture->load(svg, strlen(svg)) != tvg::Result::Success) return;
+ if (picture->load(svg, strlen(svg), "svg") != tvg::Result::Success) return;
picture->size(WIDTH, HEIGHT);
elm_shutdown();
//Terminate ThorVG Engine
- tvg::Initializer::term(tvg::CanvasEngine::Sw);
+ tvg::Initializer::term(tvgEngine);
} else {
cout << "engine is not supported" << endl;