From 8206d7460dd4e77f8c9d130eaceced21b25abcb9 Mon Sep 17 00:00:00 2001 From: lukas Date: Fri, 21 Aug 2026 23:29:43 +0200 Subject: [PATCH] Fixed color rendering issue --- src/display/palette.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display/palette.rs b/src/display/palette.rs index b79330b..450e44f 100644 --- a/src/display/palette.rs +++ b/src/display/palette.rs @@ -1,11 +1,11 @@ use embedded_graphics::pixelcolor::Rgb565; - +use embedded_graphics::pixelcolor::Rgb888; #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct Rgb(pub u8, pub u8, pub u8); impl Rgb { - pub fn into_rgb565(self) -> Rgb565 { - Rgb565::new(self.0, self.1, self.2) + pub fn into_rgb565(self) -> Rgb565 { + Rgb888::new(self.0, self.1, self.2).into() } }