platform: embedded_graphics: clone--

This commit is contained in:
Victoria Fischer 2024-12-14 14:51:42 +01:00
parent 5c2fa005c7
commit 473aff9aa3

View File

@ -98,7 +98,7 @@ impl<T: LedPixelShape, S: Surface> Display<S> for EmbeddedDisplay<Ws2812DrawTarg
let mut pixel = RGB8::new(0, 0, 0);
for surface in self.surfaces.iter() {
surface.with_shader(|shader| {
pixel = pixel.saturating_add(shader.draw(virtCoords.clone()));
pixel = pixel.saturating_add(shader.draw(virtCoords));
})
}
self.total_mw += pixel.as_milliwatts();