Skip to content

Commit 412cb2e

Browse files
authored
Merge pull request #13 from per1234/fix-bitmap-bug
Fix bug that caused bitmap to not display when y > height
2 parents 194a17b + ba36c7c commit 412cb2e

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)