graphics: oled_ui: update figments api
This commit is contained in:
@@ -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);
|
const SPEEDO_TRAY_SIZE: Size = Size::new(DISPLAY_SIZE.width - SENSOR_TRAY_SIZE.width, SENSOR_TRAY_SIZE.height);
|
||||||
|
|
||||||
impl Screen {
|
impl Screen {
|
||||||
pub fn draw_screen<'a, T>(&self, sampler: &mut EmbeddedGraphicsSampler<'a, T>, state: &OledUniforms) where T: Sample<'a, Matrix2DSpace>, T::Output: PixelSink<BinaryColor> {
|
pub fn draw_screen<'a, T>(&self, sampler: &mut EmbeddedGraphicsSampler<'a, T>, state: &OledUniforms) where T: Sample<'a, Matrix2DSpace>, T::Output: AdditivePixelSink<BinaryColor> {
|
||||||
match self {
|
match self {
|
||||||
Screen::Blank => (),
|
Screen::Blank => (),
|
||||||
Screen::Bootsplash => {
|
Screen::Bootsplash => {
|
||||||
@@ -215,7 +215,7 @@ impl Screen {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<HwPixel: PixelSink<BinaryColor>> RenderSource<OledUniforms, Matrix2DSpace, BinaryColor, HwPixel> for Screen {
|
impl<HwPixel: AdditivePixelSink<BinaryColor>> RenderSource<OledUniforms, Matrix2DSpace, BinaryColor, HwPixel> for Screen {
|
||||||
fn render_to<'a, Smp>(&'a self, output: &'a mut Smp, uniforms: &OledUniforms)
|
fn render_to<'a, Smp>(&'a self, output: &'a mut Smp, uniforms: &OledUniforms)
|
||||||
where
|
where
|
||||||
Smp: Sample<'a, Matrix2DSpace, Output = HwPixel> {
|
Smp: Sample<'a, Matrix2DSpace, Output = HwPixel> {
|
||||||
|
|||||||
Reference in New Issue
Block a user