From 1ed22cc5188d5931f800cdacea012e0f8c7c8853 Mon Sep 17 00:00:00 2001 From: Rangi Date: Tue, 14 Jul 2026 10:08:17 -0400 Subject: [PATCH] Mask blue for consistency (avoids transparent bit bugs) --- src/gfx/pal_sorting.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gfx/pal_sorting.cpp b/src/gfx/pal_sorting.cpp index 58b85f6b..56712fd9 100644 --- a/src/gfx/pal_sorting.cpp +++ b/src/gfx/pal_sorting.cpp @@ -60,7 +60,7 @@ void sortGrayscale( static unsigned int luminance(uint16_t color) { uint8_t red = color & 0b11111; uint8_t green = color >> 5 & 0b11111; - uint8_t blue = color >> 10; + uint8_t blue = color >> 10 & 0b11111; return 2126 * red + 7152 * green + 722 * blue; }