From 719287fa30160b21d616e83c3be561c041ef477f Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Sun, 1 Apr 2012 18:04:39 +0200 Subject: [PATCH] Fixed alpha blending at 100% --- drivers/displays/tft/colors.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/displays/tft/colors.c b/drivers/displays/tft/colors.c index 7451264..e74f74a 100644 --- a/drivers/displays/tft/colors.c +++ b/drivers/displays/tft/colors.c @@ -248,7 +248,7 @@ uint16_t colorsAlphaBlend(uint16_t bgColor, uint16_t foreColor, uint8_t fadePerc // Short cut if the color is full intensity if (fadePercent == 100) - return foreColor; + return bgColor; // Note: This algorithm can definately be optimised! -- 2.20.1