diff --git a/src/examples/Svg2.cpp b/src/examples/Svg2.cpp index b0a0a688..84244160 100644 --- a/src/examples/Svg2.cpp +++ b/src/examples/Svg2.cpp @@ -41,7 +41,7 @@ void tvgDrawCmds(tvg::Canvas* canvas) if (canvas->push(move(shape)) != tvg::Result::Success) return; auto picture = tvg::Picture::gen(); - if (picture->load(svg, strlen(svg), "svg") != tvg::Result::Success) return; + if (picture->load(svg, strlen(svg), "svg", false) != tvg::Result::Success) return; picture->size(WIDTH, HEIGHT); diff --git a/test/testPaint.cpp b/test/testPaint.cpp index 28e34bb8..fd0390e9 100644 --- a/test/testPaint.cpp +++ b/test/testPaint.cpp @@ -122,11 +122,11 @@ TEST_CASE("Bounding Box", "[tvgPaint]") //Negative float x = 0, y = 0, w = 0, h = 0; - REQUIRE(shape->bounds(&x, &y, &w, &h) == Result::InsufficientCondition); + REQUIRE(shape->bounds(&x, &y, &w, &h, false) == Result::InsufficientCondition); //Case 1 REQUIRE(shape->appendRect(0.0f, 10.0f, 20.0f, 100.0f, 50.0f, 50.0f) == Result::Success); - REQUIRE(shape->bounds(&x, &y, &w, &h) == Result::Success); + REQUIRE(shape->bounds(&x, &y, &w, &h, false) == Result::Success); REQUIRE(x == 0.0f); REQUIRE(y == 10.0f); REQUIRE(w == 20.0f); @@ -136,7 +136,7 @@ TEST_CASE("Bounding Box", "[tvgPaint]") REQUIRE(shape->reset() == Result::Success); REQUIRE(shape->moveTo(0.0f, 10.0f) == Result::Success); REQUIRE(shape->lineTo(20.0f, 210.0f) == Result::Success); - REQUIRE(shape->bounds(&x, &y, &w, &h) == Result::Success); + REQUIRE(shape->bounds(&x, &y, &w, &h, false) == Result::Success); REQUIRE(x == 0.0f); REQUIRE(y == 10.0f); REQUIRE(w == 20.0f); diff --git a/test/testPicture.cpp b/test/testPicture.cpp index e3de58eb..82a4276b 100644 --- a/test/testPicture.cpp +++ b/test/testPicture.cpp @@ -252,11 +252,11 @@ TEST_CASE("Load SVG Data", "[tvgPicture]") REQUIRE(picture); //Negative cases - REQUIRE(picture->load(nullptr, 100, "") == Result::InvalidArguments); - REQUIRE(picture->load(svg, 0, "") == Result::InvalidArguments); + REQUIRE(picture->load(nullptr, 100, "", false) == Result::InvalidArguments); + REQUIRE(picture->load(svg, 0, "", false) == Result::InvalidArguments); //Positive cases - REQUIRE(picture->load(svg, strlen(svg), "svg") == Result::Success); + REQUIRE(picture->load(svg, strlen(svg), "svg", false) == Result::Success); float w, h; REQUIRE(picture->size(&w, &h) == Result::Success);