From f9227546ca975bf3bf7f293d10e79004935b8645 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 1 May 2020 04:41:04 +0200 Subject: Use `fill_rectangle` for cursor in `game_of_life` --- examples/game_of_life/src/main.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'examples/game_of_life') diff --git a/examples/game_of_life/src/main.rs b/examples/game_of_life/src/main.rs index d9ff5a14..ef040263 100644 --- a/examples/game_of_life/src/main.rs +++ b/examples/game_of_life/src/main.rs @@ -339,13 +339,9 @@ mod grid { let cell = Cell::at(self.project(cursor_position, frame.size())); - let interaction = Path::rectangle( + frame.fill_rectangle( Point::new(cell.j as f32, cell.i as f32), Size::UNIT, - ); - - frame.fill( - &interaction, Color { a: 0.5, ..Color::BLACK -- cgit