From b68cf32006834f325cb74f5d46d90b9b41b28b9a Mon Sep 17 00:00:00 2001 From: LoipesMas <46327403+LoipesMas@users.noreply.github.com> Date: Sat, 25 Sep 2021 16:12:37 +0200 Subject: [PATCH] Revert useless change --- src/renderer/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs index c3e8106..39da830 100644 --- a/src/renderer/mod.rs +++ b/src/renderer/mod.rs @@ -87,9 +87,6 @@ impl Renderer { .collect(); let mut font_changed = false; - let default_background = self.grid_renderer.get_default_background(); - root_canvas.clear(default_background); - for draw_command in draw_commands.into_iter() { if let DrawCommand::FontChanged(_) = draw_command { font_changed = true; @@ -97,8 +94,10 @@ impl Renderer { self.handle_draw_command(root_canvas, draw_command); } + let default_background = self.grid_renderer.get_default_background(); let font_dimensions = self.grid_renderer.font_dimensions; + root_canvas.clear(default_background); root_canvas.save(); root_canvas.reset_matrix();