Skip to content

Commit

Permalink
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
Browse files Browse the repository at this point in the history
fix issue #594
did not check any further Problems
  • Loading branch information
Lukaswnd committed Mar 18, 2024
1 parent da0672f commit a2b7559
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/ESP32-VirtualMatrixPanel-I2S-DMA.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ class VirtualMatrixPanel
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:
Expand Down Expand Up @@ -151,9 +154,10 @@ class VirtualMatrixPanel
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

Expand Down

0 comments on commit a2b7559

Please sign in to comment.