aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukaswnd <lukas.windeln@rwth-aachen.de>2024-03-18 14:19:27 +0100
committerGitHub <noreply@github.com>2024-03-18 14:19:27 +0100
commita2b7559b3b8fe8ffb2f29c7d137ab75666e6f961 (patch)
tree134714a44c338a833facebd58d9e3493f30cc2df /src
parentda0672ffd825335c20fa577a2377b0390597afe3 (diff)
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
fix issue #594 did not check any further Problems
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