From dbfcef31487095f019c43423fbf47c6b8d55e6f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Vis=C3=A9e?= Date: Sat, 30 Dec 2017 17:16:15 +0100 Subject: [PATCH] Simplify canvas image updating --- src/main.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main.rs b/src/main.rs index 90eb5f9..0971b6e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -265,10 +265,8 @@ impl ImageManager { self.index as usize % bound ]; - // Push the image to all painter threads - for handle in canvas.painter_handles() { - handle.update_image(image); - } + // Update the image on the canvas + canvas.update_image(image); // Increase the index self.index += 1;