test: fix typo

dash size must be 2, not 4.
This commit is contained in:
Hermet Park 2020-09-16 21:01:43 +09:00
parent 5f41eff728
commit be93b17563

View file

@ -83,8 +83,8 @@ void tvgDrawCmds(tvg::Canvas* canvas)
shape5->stroke(tvg::StrokeJoin::Bevel);
shape5->stroke(tvg::StrokeCap::Butt);
float dashPattern2[4] = {10, 10};
shape5->stroke(dashPattern2, 4);
float dashPattern2[2] = {10, 10};
shape5->stroke(dashPattern2, 2);
if (canvas->push(move(shape5)) != tvg::Result::Success) return;
auto shape6 = tvg::Shape::gen();