mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
waveshare: fix 'may be used uninitialized' warning
This commit is contained in:
parent
5b4e4dc4a4
commit
a5c6130c7a
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ static void dither_rgb_inplace(int16_t *chanR, int16_t *chanG, int16_t *chanB, u
|
|||
int16_t oldR = chanR[XX + Y * width];
|
||||
int16_t oldG = chanG[XX + Y * width];
|
||||
int16_t oldB = chanB[XX + Y * width];
|
||||
uint8_t newR, newG, newB;
|
||||
uint8_t newR = 0, newG = 0, newB = 0;
|
||||
nearest_color(oldR, oldG, oldB, palette, palettelen, &newR, &newG, &newB);
|
||||
chanR[XX + Y * width] = newR;
|
||||
chanG[XX + Y * width] = newG;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue