aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2024-03-22 16:13:23 +0000
committerGitHub <noreply@github.com>2024-03-22 16:13:23 +0000
commit1e4b46e9399c774b0d0603381ea894a42bfb77ac (patch)
tree62690f1336f620e516527e148effe592981e2b97 /src
parentda0672ffd825335c20fa577a2377b0390597afe3 (diff)
parent149b58778af84d1cc387db8189191ad1ec98ed24 (diff)
Merge pull request #606 from Lukaswnd/master
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
Diffstat (limited to 'src')
-rw-r--r--src/ESP32-VirtualMatrixPanel-I2S-DMA.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h
index a6b9d15..02a6886 100644
--- a/src/ESP32-VirtualMatrixPanel-I2S-DMA.h
+++ b/src/ESP32-VirtualMatrixPanel-I2S-DMA.h
@@ -97,6 +97,9 @@ public:
virtualResX = vmodule_cols * _panelResX;
virtualResY = vmodule_rows * _panelResY;
+ _virtualResX = virtualResX;
+ _virtualResY = virtualResY;
+
dmaResX = panelResX * vmodule_rows * vmodule_cols - 1;
/* Virtual Display width() and height() will return a real-world value. For example:
@@ -151,9 +154,10 @@ private:
virtual VirtualCoords getCoords(int16_t x, int16_t y);
VirtualCoords coords;
- int16_t virtualResX;
- int16_t virtualResY;
-
+ int16_t virtualResX; ///< Display width as combination of panels
+ int16_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