diff options
-rw-r--r-- | src/app.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -428,9 +428,11 @@ impl<'ctx> AppState<'ctx> { | |||
428 | fn draw_brush(&mut self) { | 428 | fn draw_brush(&mut self) { |
429 | let cs = self.zoom as u32; | 429 | let cs = self.zoom as u32; |
430 | let pt = self.idx_at_coord(self.mouse); | 430 | let pt = self.idx_at_coord(self.mouse); |
431 | self.context.mouse().show_cursor(true); | ||
431 | if matches!(self.brush, Brush::Circle { .. } | Brush::Line { .. }) { | 432 | if matches!(self.brush, Brush::Circle { .. } | Brush::Line { .. }) { |
432 | let size = self.brush.size().unwrap(); | 433 | let size = self.brush.size().unwrap(); |
433 | if let Some(center) = pt { | 434 | if let Some(center) = pt { |
435 | self.context.mouse().show_cursor(false); | ||
434 | let circle = self.pixmap.get_circle(center, size as u32, false); | 436 | let circle = self.pixmap.get_circle(center, size as u32, false); |
435 | for MapPoint { x, y } in circle.into_iter() { | 437 | for MapPoint { x, y } in circle.into_iter() { |
436 | self.canvas.set_draw_color(PINK); | 438 | self.canvas.set_draw_color(PINK); |