Fixed color rendering issue

This commit is contained in:
2026-08-21 23:29:43 +02:00
parent 5a534b1f0b
commit 8206d7460d
+3 -3
View File
@@ -1,11 +1,11 @@
use embedded_graphics::pixelcolor::Rgb565; use embedded_graphics::pixelcolor::Rgb565;
use embedded_graphics::pixelcolor::Rgb888;
#[derive(Debug, Clone, Copy, PartialEq, Eq)] #[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct Rgb(pub u8, pub u8, pub u8); pub struct Rgb(pub u8, pub u8, pub u8);
impl Rgb { impl Rgb {
pub fn into_rgb565(self) -> Rgb565 { pub fn into_rgb565(self) -> Rgb565 {
Rgb565::new(self.0, self.1, self.2) Rgb888::new(self.0, self.1, self.2).into()
} }
} }