Fix incorrect virtual Y coordinate for second and next rows of panels
This commit is contained in:
parent
228e742702
commit
459516b6db
1 changed files with 2 additions and 2 deletions
|
@ -389,7 +389,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t virt_x, int16_t virt_
|
|||
as if the panel is 2 * W and 0.5 * H !
|
||||
*/
|
||||
|
||||
if ((virt_y & 8) == 0)
|
||||
if ((coords.y & 8) == 0)
|
||||
{
|
||||
coords.x += ((coords.x / panelResX) + 1) * panelResX; // 1st, 3rd 'block' of 8 rows of pixels, offset by panel width in DMA buffer
|
||||
}
|
||||
|
@ -405,7 +405,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t virt_x, int16_t virt_
|
|||
}
|
||||
else if (panel_scan_rate == FOUR_SCAN_16PX_HIGH)
|
||||
{
|
||||
if ((virt_y & 4) == 0)
|
||||
if ((coords.y & 4) == 0)
|
||||
{
|
||||
coords.x += ((coords.x / panelResX) + 1) * panelResX; // 1st, 3rd 'block' of 8 rows of pixels, offset by panel width in DMA buffer
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue