From dadaae28849c9c45fcf72483c1b7fd3d88d06804 Mon Sep 17 00:00:00 2001 From: nworbnhoj Date: Thu, 28 Jul 2022 05:25:05 +1000 Subject: [PATCH] mark color_types palette as unsupported in Bitmap::from_png --- services/gam/src/bitmap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/gam/src/bitmap.rs b/services/gam/src/bitmap.rs index c3f83474d..4324dead6 100644 --- a/services/gam/src/bitmap.rs +++ b/services/gam/src/bitmap.rs @@ -82,7 +82,7 @@ impl Bitmap { (0, 16) => PixelType::U16, (2, 8) => PixelType::U8x3, (2, 16) => PixelType::U16x3, - (3, 1 | 2 | 4 | 8) => PixelType::U8, + (3, 1 | 2 | 4 | 8) => PixelType::U0, // Unsupported (4, 8) => PixelType::U8x2, (4, 16) => PixelType::U16x2, (6, 8) => PixelType::U8x4,