diff --git a/src/graphics/oled_ui.rs b/src/graphics/oled_ui.rs index a747690..fa893f5 100644 --- a/src/graphics/oled_ui.rs +++ b/src/graphics/oled_ui.rs @@ -134,7 +134,7 @@ const SENSOR_TRAY_SIZE: Size = Size::new(SENSOR_IMAGES.len() as u32 * (SENSOR_IC const SPEEDO_TRAY_SIZE: Size = Size::new(DISPLAY_SIZE.width - SENSOR_TRAY_SIZE.width, SENSOR_TRAY_SIZE.height); impl Screen { - pub fn draw_screen<'a, T>(&self, sampler: &mut EmbeddedGraphicsSampler<'a, T>, state: &OledUniforms) where T: Sample<'a, Matrix2DSpace>, T::Output: PixelSink { + pub fn draw_screen<'a, T>(&self, sampler: &mut EmbeddedGraphicsSampler<'a, T>, state: &OledUniforms) where T: Sample<'a, Matrix2DSpace>, T::Output: AdditivePixelSink { match self { Screen::Blank => (), Screen::Bootsplash => { @@ -215,7 +215,7 @@ impl Screen { } } -impl> RenderSource for Screen { +impl> RenderSource for Screen { fn render_to<'a, Smp>(&'a self, output: &'a mut Smp, uniforms: &OledUniforms) where Smp: Sample<'a, Matrix2DSpace, Output = HwPixel> {