diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-05-16 15:08:18 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-16 15:08:18 +0100 |
| commit | f73552b6520df596ba0fd0bb6911e43257590e23 (patch) | |
| tree | 996d06aed7d5f1c4c831258b9dc67d721e604b58 | |
| parent | 6e0a7638f27ee8df9611be51fcfdcffead861ee9 (diff) | |
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
| -rw-r--r-- | ESP32-VirtualMatrixPanel-I2S-DMA.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ESP32-VirtualMatrixPanel-I2S-DMA.h b/ESP32-VirtualMatrixPanel-I2S-DMA.h index 7830c6c..5dee0b4 100644 --- a/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -105,7 +105,7 @@ class VirtualMatrixPanel inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t x, int16_t y) { - coords.x = coords.y = 0; + coords.x = coords.y = -1; // By defalt use an invalid co-ordinates that will be rejected by updateMatrixDMABuffer if (x < 0 || x > width() || y < 0 || y > height() ) { //Serial.printf("VirtualMatrixPanel::getCoords(): Invalid virtual display coordinate. x,y: %d, %d\r\n", x, y); @@ -212,4 +212,4 @@ inline void VirtualMatrixPanel::drawIcon (int *ico, int16_t x, int16_t y, int16_ } } -#endif
\ No newline at end of file +#endif |
