From 75e3b6bfaab2c9ea02e5544e0b0b43dd8b973beb Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 10 Aug 2026 18:59:50 +0800 Subject: [PATCH] fix(boot): fill the boot-screen swatches on BWR/BWY panels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The footer swatches advertise the colors a panel can produce, but on a bitplane scheme the black one rendered as an empty outlined box. The interior fill was skipped for BWR/BWY by an `!useBitplanes` guard. The guard is unnecessary: swatch codes reach setBootPixelCode(), which at 1 bpp already clears the bit for code 0 and sets it for code 1 — exactly the black and white the B/W plane needs. The colored swatch never reaches this path at all; colorPlanePass paints it on PLANE_1 and continues. --- src/boot_screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/boot_screen.cpp b/src/boot_screen.cpp index a78c770..c8fe941 100644 --- a/src/boot_screen.cpp +++ b/src/boot_screen.cpp @@ -1019,7 +1019,7 @@ bool writeBootScreenWithQr() { ; if (black) { setBootPixelBlack(row, x_native, pitch, bitsPerPixel, colorScheme); - } else if (!useBitplanes) { + } else { int si = bootSwatchIndex(lx, ly, swatchY0, swatchY1, swatchW, numSwatches, w_log); if (si >= 0) setBootPixelCode(row, x_native, pitch, bitsPerPixel, swatchCode[si]); }