From 62549e73bf8b049d921f017d56f491f42e2d01c7 Mon Sep 17 00:00:00 2001 From: Fabian Schlenz Date: Wed, 25 Sep 2019 06:35:30 +0200 Subject: [PATCH] Small fix for clock effect to work correctly with the new subpixel rendeing stuff. --- src/effect_clock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/effect_clock.cpp b/src/effect_clock.cpp index d19b955..2866a1c 100644 --- a/src/effect_clock.cpp +++ b/src/effect_clock.cpp @@ -30,11 +30,11 @@ void ClockEffect::loop(boolean invert, CRGB fg_color, CRGB bg_color) { } int h = ntpClient.getHours(); //void drawChar(Font f, uint8_t x, uint8_t y, const char c, CRGB* color, bool mask=false); - window->drawChar(&font_numbers3x5, 0, 1, '0' + (h / 10), &fg_color, invert); - window->drawChar(&font_numbers3x5, 4, 1, '0' + (h % 10), &fg_color, invert); + window->drawChar(&font_numbers3x5, 0<<8, 1<<8, '0' + (h / 10), &fg_color, invert); + window->drawChar(&font_numbers3x5, 4<<8, 1<<8, '0' + (h % 10), &fg_color, invert); int m = ntpClient.getMinutes(); - window->drawChar(&font_numbers3x5, 9, 1, '0' + (m / 10), &fg_color, invert); - window->drawChar(&font_numbers3x5, 13, 1, '0' + (m % 10), &fg_color, invert); + window->drawChar(&font_numbers3x5, 9<<8, 1<<8, '0' + (m / 10), &fg_color, invert); + window->drawChar(&font_numbers3x5, 13<<8, 1<<8, '0' + (m % 10), &fg_color, invert); if (ntpClient.getSeconds() & 1) { window->setPixel(7, 2, &fg_color); window->setPixel(7, 4, &fg_color);