Skip to content

Commit ba36c7c

Browse files
committed
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.
1 parent 194a17b commit ba36c7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoGraphics.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ void ArduinoGraphics::bitmap(const uint8_t* data, int x, int y, int width, int h
236236
return;
237237
}
238238

239-
if ((data == NULL) || ((x + width) < 0) || ((y + height) < 0) || (x > _width) || (y > height)) {
239+
if ((data == NULL) || ((x + width) < 0) || ((y + height) < 0) || (x > _width) || (y > _height)) {
240240
// offscreen
241241
return;
242242
}

0 commit comments

Comments
 (0)