Skip to content

Commit 0a47730

Browse files
authored
Fix #2796 (#2827)
1 parent caa1076 commit 0a47730

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TFT_eSPI.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5021,9 +5021,9 @@ uint32_t TFT_eSPI::alphaBlend24(uint8_t alpha, uint32_t fgc, uint32_t bgc, uint8
50215021
uint32_t rxx = bgc & 0xFF0000;
50225022
rxx += ((fgc & 0xFF0000) - rxx) * alpha >> 8;
50235023
uint32_t xgx = bgc & 0x00FF00;
5024-
xgx += ((fgc & 0xFF0000) - xgx) * alpha >> 8;
5024+
xgx += ((fgc & 0x00FF00) - xgx) * alpha >> 8;
50255025
uint32_t xxb = bgc & 0x0000FF;
5026-
xxb += ((fgc & 0xFF0000) - xxb) * alpha >> 8;
5026+
xxb += ((fgc & 0x0000FF) - xxb) * alpha >> 8;
50275027
return (rxx & 0xFF0000) | (xgx & 0x00FF00) | (xxb & 0x0000FF);
50285028
}
50295029

0 commit comments

Comments
 (0)