Update OneEighthScanMatrixPanel.h
This commit is contained in:
parent
ad2cb3c976
commit
90d1b74e58
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue