From b2168e6d059e69747ee8694d95487ff2f86e4847 Mon Sep 17 00:00:00 2001 From: Elena Marzi Tornblad Date: Sat, 13 Nov 2021 21:55:08 +0100 Subject: [PATCH] Fix color bug in clear() method The green and blue components of the background were switched in the clear() method. --- src/ArduinoGraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArduinoGraphics.cpp b/src/ArduinoGraphics.cpp index 6e15198..5aeff55 100644 --- a/src/ArduinoGraphics.cpp +++ b/src/ArduinoGraphics.cpp @@ -83,7 +83,7 @@ void ArduinoGraphics::clear() { for (int x = 0; x < _width; x++) { for (int y = 0; y < _height; y++) { - set(x, y, _backgroundR, _backgroundB, _backgroundG); + set(x, y, _backgroundR, _backgroundG, _backgroundB); } } }