4th time lucky
This commit is contained in:
parent
a6b178e29a
commit
7042631dda
1 changed files with 1 additions and 1 deletions
|
@ -152,7 +152,7 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) {
|
||||||
|
|
||||||
// 1/8 Scan Panel - Is the final x-coord on the 1st or 3rd, 1/4ths (8 pixel 'blocks') of the panel (i.e. Row 0-7 or 17-24) ?
|
// 1/8 Scan Panel - Is the final x-coord on the 1st or 3rd, 1/4ths (8 pixel 'blocks') of the panel (i.e. Row 0-7 or 17-24) ?
|
||||||
// Double the length of the x-coord if required
|
// Double the length of the x-coord if required
|
||||||
if ( (coords.y /8) % 2 == 1) { // returns true/1 for the 1st and 3rd 8-pixel 1/4th of a 32px high panel
|
if ( ((coords.y /8) % 2) == 0) { // returns true/1 for the 1st and 3rd 8-pixel 1/4th of a 32px high panel
|
||||||
coords.x += (panelResX*col);
|
coords.x += (panelResX*col);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue