Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
maron2000 committed Oct 10, 2023
1 parent 76aaccb commit ac91760
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/output/output_ttf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ bool setColors(const char *colorArray, int n) {
nextRGB++;
nextRGB++;
} else if (sscanf(nextRGB, " #%6x", ((uint32_t*)(&rgbVal[3]))) == 1) { // Hexadecimal
if (rgbVal[3] < 0 || rgbVal[3] > 0xFFFFF)
if (rgbVal[3] < 0 || rgbVal[3] > 0xFFFFFF)
return false;
for (int i = 2; i >= 0; i--) {
rgbVal[i] = rgbVal[3]&255;
Expand Down

0 comments on commit ac91760

Please sign in to comment.