Commit a7eb9e82 authored by Bodmer's avatar Bodmer

Fix #2400

parent a5679b8d
...@@ -4477,8 +4477,8 @@ void TFT_eSPI::drawWedgeLine(float ax, float ay, float bx, float by, float ar, f ...@@ -4477,8 +4477,8 @@ void TFT_eSPI::drawWedgeLine(float ax, float ay, float bx, float by, float ar, f
bg = readPixel(xp, yp); swin = true; bg = readPixel(xp, yp); swin = true;
} }
#ifdef GC9A01_DRIVER #ifdef GC9A01_DRIVER
uint16_t pcol = alphaBlend((uint8_t)(alpha * PixelAlphaGain); uint16_t pcol = alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg);
drawPixel(xp, yp, pcol, fg_color, bg)); drawPixel(xp, yp, pcol);
#else #else
if (swin) { setWindow(xp, yp, x1, yp); swin = false; } if (swin) { setWindow(xp, yp, x1, yp); swin = false; }
pushColor(alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg)); pushColor(alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg));
...@@ -4514,8 +4514,8 @@ void TFT_eSPI::drawWedgeLine(float ax, float ay, float bx, float by, float ar, f ...@@ -4514,8 +4514,8 @@ void TFT_eSPI::drawWedgeLine(float ax, float ay, float bx, float by, float ar, f
bg = readPixel(xp, yp); swin = true; bg = readPixel(xp, yp); swin = true;
} }
#ifdef GC9A01_DRIVER #ifdef GC9A01_DRIVER
uint16_t pcol = alphaBlend((uint8_t)(alpha * PixelAlphaGain); uint16_t pcol = alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg);
drawPixel(xp, yp, pcol, fg_color, bg)); drawPixel(xp, yp, pcol);
#else #else
if (swin) { setWindow(xp, yp, x1, yp); swin = false; } if (swin) { setWindow(xp, yp, x1, yp); swin = false; }
pushColor(alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg)); pushColor(alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment