Pen1BitY: Correct RGB to dither lookup conversion.

This commit is contained in:
Phil Howard 2024-02-27 13:54:25 +00:00
parent 10221066dd
commit c4f70df1cf
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ namespace pimoroni {
}
void PicoGraphics_Pen1BitY::set_pen(uint8_t r, uint8_t g, uint8_t b) {
color = std::max(r, std::max(g, b));
color = std::max(r, std::max(g, b)) >> 4;
}
void PicoGraphics_Pen1BitY::set_pixel(const Point &p) {