Skip to content

Commit

Permalink
Fix #2796 (#2827)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodmer committed Sep 1, 2023
1 parent caa1076 commit 0a47730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TFT_eSPI.cpp
Expand Up @@ -5021,9 +5021,9 @@ uint32_t TFT_eSPI::alphaBlend24(uint8_t alpha, uint32_t fgc, uint32_t bgc, uint8
uint32_t rxx = bgc & 0xFF0000;
rxx += ((fgc & 0xFF0000) - rxx) * alpha >> 8;
uint32_t xgx = bgc & 0x00FF00;
xgx += ((fgc & 0xFF0000) - xgx) * alpha >> 8;
xgx += ((fgc & 0x00FF00) - xgx) * alpha >> 8;
uint32_t xxb = bgc & 0x0000FF;
xxb += ((fgc & 0xFF0000) - xxb) * alpha >> 8;
xxb += ((fgc & 0x0000FF) - xxb) * alpha >> 8;
return (rxx & 0xFF0000) | (xgx & 0x00FF00) | (xxb & 0x0000FF);
}

Expand Down

0 comments on commit 0a47730

Please sign in to comment.