Skip to content

Commit c4f70df

Browse files
committed
Pen1BitY: Correct RGB to dither lookup conversion.
1 parent 1022106 commit c4f70df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/pico_graphics/pico_graphics_pen_1bitY.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace pimoroni {
1515
}
1616

1717
void PicoGraphics_Pen1BitY::set_pen(uint8_t r, uint8_t g, uint8_t b) {
18-
color = std::max(r, std::max(g, b));
18+
color = std::max(r, std::max(g, b)) >> 4;
1919
}
2020

2121
void PicoGraphics_Pen1BitY::set_pixel(const Point &p) {

0 commit comments

Comments
 (0)