Simplify canvas image updating
This commit is contained in:
@@ -265,10 +265,8 @@ impl ImageManager {
|
|||||||
self.index as usize % bound
|
self.index as usize % bound
|
||||||
];
|
];
|
||||||
|
|
||||||
// Push the image to all painter threads
|
// Update the image on the canvas
|
||||||
for handle in canvas.painter_handles() {
|
canvas.update_image(image);
|
||||||
handle.update_image(image);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Increase the index
|
// Increase the index
|
||||||
self.index += 1;
|
self.index += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user