FIX: display x<0 || y<0
This commit is contained in:
parent
7c1167606c
commit
e24d7c5a25
@ -244,7 +244,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
void set(uint8_t x, uint8_t y, Color color) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
if ((y % 2) != 0) {
|
if ((y % 2) != 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user