FIX: display x<0 || y<0

This commit is contained in:
Patrick Haßel 2025-01-23 23:07:05 +01:00
parent 7c1167606c
commit e24d7c5a25

View File

@ -244,7 +244,7 @@ public:
}
void set(uint8_t x, uint8_t y, Color color) {
if (x >= width || y >= height) {
if (x < 0 || y < 0 || x >= width || y >= height) {
return;
}
if ((y % 2) != 0) {