From a2b7559b3b8fe8ffb2f29c7d137ab75666e6f961 Mon Sep 17 00:00:00 2001 From: Lukaswnd Date: Mon, 18 Mar 2024 14:19:27 +0100 Subject: [PATCH] Update ESP32-VirtualMatrixPanel-I2S-DMA.h fix issue #594 did not check any further Problems --- src/ESP32-VirtualMatrixPanel-I2S-DMA.h | 10 +++++++--- 1 file 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