Update ESP32-VirtualMatrixPanel-I2S-DMA.h

This commit is contained in:
mrfaptastic 2023-04-03 10:06:44 +01:00
parent 2fe0cf0806
commit 4cb60e0180

View file

@ -134,7 +134,7 @@ public:
void drawDisplayTest();
void setPhysicalPanelScanRate(PANEL_SCAN_RATE rate);
void setScaleFactor(int scale);
void setZoomFactor(int scale);
private:
MatrixPanel_I2S_DMA *display;
@ -500,7 +500,7 @@ inline void VirtualMatrixPanel::setPhysicalPanelScanRate(PANEL_SCAN_RATE rate)
panel_scan_rate = rate;
}
inline void VirtualMatrixPanel::setScaleFactor(int scale)
inline void VirtualMatrixPanel::setZoomFactor(int scale)
{
if(scale < 5 && scale > 0)
_scale_factor = scale;