summaryrefslogtreecommitdiff
path: root/docs/autoapi
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2020-12-16 13:48:07 -0600
committerJeff Epler <jepler@gmail.com>2020-12-16 13:48:27 -0600
commit28bd29eb42d61d0a7116b6c4295e166fcfbe7145 (patch)
tree2928f5249f63958194f6fcaae6e35d872e1ab9b6 /docs/autoapi
parentf2204d7d88b505155cd25b38b71ae3c35b86d438 (diff)
displayio: ColorConverter: fix logic errors about transparent pixels
The transparent_color field was never initialized. I _think_ this means its value was always set to 0, or the blackest of blacks. Instead, initialize it to the sentinel value, newly given the name NO_TRANSPARENT_COLOR. This exposed a second problem: The test for whether there was an existing transparent color was wrong (backwards). I am guessing that this was not found due to the first bug; since the converter had a transparent color, the correct test would have led to always getting the error "Only one color can be transparent at a time". Closes #3723
Diffstat (limited to 'docs/autoapi')
0 files changed, 0 insertions, 0 deletions