Pen1BitY: Correct RGB to dither lookup conversion.

pull/907/head
Phil Howard 2024-02-27 13:54:25 +00:00
rodzic 10221066dd
commit c4f70df1cf
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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) {