Merge pull request #621 from board707/virtual_getCoords

Make VirtualMatrixPanel::getCoords() public.
This commit is contained in:
mrcodetastic 2024-04-22 20:05:34 +01:00 committed by GitHub
commit b67bd96067
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -145,15 +145,17 @@ public:
void setPhysicalPanelScanRate(PANEL_SCAN_RATE rate); void setPhysicalPanelScanRate(PANEL_SCAN_RATE rate);
void setZoomFactor(int scale); void setZoomFactor(int scale);
virtual VirtualCoords getCoords(int16_t x, int16_t y);
VirtualCoords coords;
int16_t panelResX;
int16_t panelResY;
private: private:
MatrixPanel_I2S_DMA *display; MatrixPanel_I2S_DMA *display;
PANEL_CHAIN_TYPE panel_chain_type; PANEL_CHAIN_TYPE panel_chain_type;
PANEL_SCAN_RATE panel_scan_rate = NORMAL_TWO_SCAN; PANEL_SCAN_RATE panel_scan_rate = NORMAL_TWO_SCAN;
virtual VirtualCoords getCoords(int16_t x, int16_t y);
VirtualCoords coords;
int16_t virtualResX; ///< Display width as combination of panels int16_t virtualResX; ///< Display width as combination of panels
int16_t virtualResY; ///< Display height as combination of panels int16_t virtualResY; ///< Display height as combination of panels
@ -164,9 +166,6 @@ private:
int16_t vmodule_rows; int16_t vmodule_rows;
int16_t vmodule_cols; int16_t vmodule_cols;
int16_t panelResX;
int16_t panelResY;
int16_t dmaResX; // The width of the chain in pixels (as the DMA engine sees it) int16_t dmaResX; // The width of the chain in pixels (as the DMA engine sees it)
int _rotate = 0; int _rotate = 0;