Skip to content

Commit 64184bb

Browse files
authored
fix(boot): fill the boot-screen swatches on BWR/BWY panels (#149)
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.
1 parent a1a165e commit 64184bb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/boot_screen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,7 +1019,7 @@ bool writeBootScreenWithQr() {
10191019
;
10201020
if (black) {
10211021
setBootPixelBlack(row, x_native, pitch, bitsPerPixel, colorScheme);
1022-
} else if (!useBitplanes) {
1022+
} else {
10231023
int si = bootSwatchIndex(lx, ly, swatchY0, swatchY1, swatchW, numSwatches, w_log);
10241024
if (si >= 0) setBootPixelCode(row, x_native, pitch, bitsPerPixel, swatchCode[si]);
10251025
}

0 commit comments

Comments
 (0)