Mask blue for consistency (avoids transparent bit bugs)

This commit is contained in:
Rangi
2026-07-14 10:34:27 -04:00
committed by Rangi
parent 9a15b723f2
commit 1ed22cc518
+1 -1
View File
@@ -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;
}