From ba36c7c3b82d34a607510e47213ad620ca0905e2 Mon Sep 17 00:00:00 2001 From: per1234 Date: Thu, 19 Mar 2020 07:58:10 -0700 Subject: [PATCH] Fix bug that caused bitmap to not display when y > height Use of incorrect variable name caused the bitmap to not display when the y position was greater than the bitmap height. --- src/ArduinoGraphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArduinoGraphics.cpp b/src/ArduinoGraphics.cpp index bedd1a7..6e15198 100644 --- a/src/ArduinoGraphics.cpp +++ b/src/ArduinoGraphics.cpp @@ -236,7 +236,7 @@ void ArduinoGraphics::bitmap(const uint8_t* data, int x, int y, int width, int h return; } - if ((data == NULL) || ((x + width) < 0) || ((y + height) < 0) || (x > _width) || (y > height)) { + if ((data == NULL) || ((x + width) < 0) || ((y + height) < 0) || (x > _width) || (y > _height)) { // offscreen return; }