Skip to content

Commit 7da35ee

Browse files
committed
Change clip path to a circle in the demo
1 parent 328e5d9 commit 7da35ee

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

demo/common/app.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ App::App(const std::shared_ptr<Device> &device,
3030
// TEST: Clip path.
3131
if (true) {
3232
Path2d path;
33-
path.add_rect(RectF(Vec2F(0.0, 0.0), Vec2F(360.0, 360.0)));
34-
33+
path.add_circle(Vec2F(180.0, 180.0), 180);
3534
canvas_->clip_path(path, FillRule::Winding);
3635
}
3736

0 commit comments

Comments
 (0)