From 42b9a4fbd1d0117224c9d175804d78425f35680e Mon Sep 17 00:00:00 2001 From: Bodmer Date: Mon, 3 Jul 2023 12:36:27 +0100 Subject: [PATCH] Fix unused variable warning #2678 --- TFT_eSPI.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TFT_eSPI.cpp b/TFT_eSPI.cpp index 22915ff..939f707 100644 --- a/TFT_eSPI.cpp +++ b/TFT_eSPI.cpp @@ -4524,6 +4524,7 @@ void TFT_eSPI::drawWedgeLine(float ax, float ay, float bx, float by, float ar, f #ifdef GC9A01_DRIVER uint16_t pcol = alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg); drawPixel(xp, yp, pcol); + swin = swin; #else if (swin) { setWindow(xp, yp, x1, yp); swin = false; } pushColor(alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg)); @@ -4561,6 +4562,7 @@ void TFT_eSPI::drawWedgeLine(float ax, float ay, float bx, float by, float ar, f #ifdef GC9A01_DRIVER uint16_t pcol = alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg); drawPixel(xp, yp, pcol); + swin = swin; #else if (swin) { setWindow(xp, yp, x1, yp); swin = false; } pushColor(alphaBlend((uint8_t)(alpha * PixelAlphaGain), fg_color, bg));