aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-10-10 21:32:39 +0100
committerGitHub <noreply@github.com>2021-10-10 21:32:39 +0100
commit90d1b74e582ee1bece48bbdfc61e3391513ceb15 (patch)
tree0d5271fc0b77f9ab09959775576888508f5d42f9 /examples
parentad2cb3c9767125e682fa4a494f47e357bbb0fb3f (diff)
Update OneEighthScanMatrixPanel.h
Diffstat (limited to 'examples')
-rw-r--r--examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h4
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