aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJagoda Estera Ślązak <jslazak@jslazak.com>2025-02-08 14:37:12 +0100
committerJagoda Estera Ślązak <jslazak@jslazak.com>2025-02-08 14:37:12 +0100
commit4695ed3a0f8a4f1668cdb0717bc4cfb8da3b6589 (patch)
tree796f1bd94096774c30ba2067994c8f9104c15888 /src
parentee796eb96f5a88724e9b8509bfae6df12d7363e4 (diff)
Use unsigned integers where negative values doesn't make sense
Diffstat (limited to 'src')
-rw-r--r--src/ESP32-VirtualMatrixPanel-I2S-DMA.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h
index 50706a4..8270188 100644
--- a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h
+++ b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h
@@ -134,8 +134,8 @@ public:
#endif
#ifdef NO_GFX
- inline int16_t width() const { return _virtualResX; }
- inline int16_t height() const { return _virtualResY; }
+ inline uint16_t width() const { return _virtualResX; }
+ inline uint16_t height() const { return _virtualResY; }
#endif
uint16_t color444(uint8_t r, uint8_t g, uint8_t b)
@@ -153,8 +153,8 @@ public:
virtual VirtualCoords getCoords(int16_t x, int16_t y);
VirtualCoords coords;
- int16_t panelResX;
- int16_t panelResY;
+ uint16_t panelResX;
+ uint16_t panelResY;
private:
MatrixPanel_I2S_DMA *display;
@@ -162,17 +162,17 @@ private:
PANEL_CHAIN_TYPE panel_chain_type;
PANEL_SCAN_RATE panel_scan_rate = NORMAL_TWO_SCAN;
- int16_t virtualResX; ///< Display width as combination of panels
- int16_t virtualResY; ///< Display height as combination of panels
+ uint16_t virtualResX; ///< Display width as combination of panels
+ uint16_t virtualResY; ///< Display height as combination of panels
- int16_t _virtualResX; ///< Display width as modified by current rotation
- int16_t _virtualResY; ///< Display height as modified by current rotation
+ uint16_t _virtualResX; ///< Display width as modified by current rotation
+ uint16_t _virtualResY; ///< Display height as modified by current rotation
- int16_t vmodule_rows;
- int16_t vmodule_cols;
+ uint16_t vmodule_rows;
+ uint16_t vmodule_cols;
- int16_t dmaResX; // The width of the chain in pixels (as the DMA engine sees it)
+ uint16_t dmaResX; // The width of the chain in pixels (as the DMA engine sees it)
int _rotate = 0;