Skip to content

Commit 80ff026

Browse files
committed
minimal.c: remove first stroke / unused params
The initial stroke is not necessary/correct after the reversal of count_dabs_to's semantics for legacy strokes (and new-style strokes).
1 parent 029a4cf commit 80ff026

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

examples/minimal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
void
55
stroke_to(MyPaintBrush *brush, MyPaintSurface *surf, float x, float y)
66
{
7-
float viewzoom = 1.0, viewrotation = 0.0, barrel_rotation = 0.0;
87
float pressure = 1.0, ytilt = 0.0, xtilt = 0.0, dtime = 1.0/10;
98
mypaint_brush_stroke_to
109
(brush, surf, x, y, pressure, xtilt, ytilt, dtime);
@@ -30,7 +29,6 @@ main(int argc, char argv[]) {
3029

3130
/* Draw a rectangle on the surface using the brush */
3231
mypaint_surface_begin_atomic((MyPaintSurface*)surface);
33-
stroke_to(brush, (MyPaintSurface*)surface, 0, 0);
3432
stroke_to(brush, (MyPaintSurface*)surface, wq, hq);
3533
stroke_to(brush, (MyPaintSurface*)surface, 4 * wq, hq);
3634
stroke_to(brush, (MyPaintSurface*)surface, 4 * wq, 4 * hq);

0 commit comments

Comments
 (0)