Update OneEighthScanMatrixPanel.h

This commit is contained in:
mrfaptastic 2021-10-10 21:32:39 +01:00 committed by GitHub
parent ad2cb3c976
commit 90d1b74e58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 * 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
#endif