Revert useless change

macos-click-through
LoipesMas 3 years ago committed by Keith Simmons
parent 62bdb20c41
commit b68cf32006

@ -87,9 +87,6 @@ impl Renderer {
.collect(); .collect();
let mut font_changed = false; 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() { for draw_command in draw_commands.into_iter() {
if let DrawCommand::FontChanged(_) = draw_command { if let DrawCommand::FontChanged(_) = draw_command {
font_changed = true; font_changed = true;
@ -97,8 +94,10 @@ impl Renderer {
self.handle_draw_command(root_canvas, draw_command); 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; let font_dimensions = self.grid_renderer.font_dimensions;
root_canvas.clear(default_background);
root_canvas.save(); root_canvas.save();
root_canvas.reset_matrix(); root_canvas.reset_matrix();

Loading…
Cancel
Save