Update OneEighthScanMatrixPanel.h

This commit is contained in:
mrfaptastic 2021-10-10 21:43:56 +01:00
parent 90d1b74e58
commit 35b556d57f

View file

@ -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 * row * col - 1) - coords.x;
coords.x = (panelResX * vmodule_rows * vmodule_cols - 1) - coords.x;
coords.y = (panelResY-1) - coords.y;
}