From 90d1b74e582ee1bece48bbdfc61e3391513ceb15 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 10 Oct 2021 21:32:39 +0100 Subject: [PATCH] Update OneEighthScanMatrixPanel.h --- examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h | 4 ++-- 1 file 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