diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-10-10 21:32:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-10 21:32:39 +0100 |
| commit | 90d1b74e582ee1bece48bbdfc61e3391513ceb15 (patch) | |
| tree | 0d5271fc0b77f9ab09959775576888508f5d42f9 /examples | |
| parent | ad2cb3c9767125e682fa4a494f47e357bbb0fb3f (diff) | |
Update OneEighthScanMatrixPanel.h
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h index 2ef257a..31d16c8 100644 --- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h +++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h @@ -172,7 +172,7 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) { coords.y = (_cfg.mx_height-1) - coords.y; */ - coords.x = (panelResX * rows * cols - 1) - coords.x; + coords.x = (panelResX * row * col - 1) - coords.x; coords.y = (panelResY-1) - coords.y; } @@ -213,4 +213,4 @@ inline void OneEighthMatrixPanel::drawIcon (int *ico, int16_t x, int16_t y, int1 } -#endif
\ No newline at end of file +#endif |
