aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.rs b/src/state.rs
index c2f7848..3b5e235 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -89,8 +89,8 @@ impl State {
for p in iter {
self.ctx.begin_path();
self.ctx.move_to(last.x, last.y);
- self.ctx.line_to(p.x, p.y);
self.ctx.set_stroke_style_str(&last.color);
+ self.ctx.line_to(p.x, p.y);
self.ctx.stroke();
last = p;