Skip to content

ledgfx.h has a cosmetic bug #3

@mayhem2408

Description

@mayhem2408

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) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions