Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ledgfx.h has a cosmetic bug #3

Open
mayhem2408 opened this issue May 23, 2021 · 0 comments
Open

ledgfx.h has a cosmetic bug #3

mayhem2408 opened this issue May 23, 2021 · 0 comments

Comments

@mayhem2408
Copy link

mayhem2408 commented May 23, 2021

In both the DrawFanPixels and DrawPixels functions in the ledgfx.h and previous examples in the main.cpp, the test for the middle pixel, which reads

while (remaining > 1.0f) {

This will skip over drawing the middle pixel if remaining = 1.0f. This means the third pixel will get the full intensity pixel instead of the second/middle pixel. I believe it should read

while (remaining >= 1.0f) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant