platform: embedded_graphics: clone--
This commit is contained in:
parent
5c2fa005c7
commit
473aff9aa3
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user