fix for off-by-one error in Lissajous (float version)

This commit is contained in:
Frank
2024-10-06 19:59:59 +02:00
parent d429293741
commit 4fadcade93
2 changed files with 3 additions and 3 deletions

View File

@@ -466,8 +466,8 @@ void Segment::setPixelColorXY(float x, float y, uint32_t col, bool aa, bool fast
}
#else // replacement using wu_pixel
unsigned px = x * (virtualWidth() <<8);
unsigned py = y * (virtualHeight() <<8);
unsigned px = x * ((virtualWidth()-1) <<8);
unsigned py = y * ((virtualHeight()-1) <<8);
wu_pixel(px, py, CRGB(col));
#endif
}