From: Kevin Townsend Date: Sun, 1 Apr 2012 16:04:39 +0000 (+0200) Subject: Fixed alpha blending at 100% X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/commitdiff_plain/719287fa30160b21d616e83c3be561c041ef477f Fixed alpha blending at 100% --- 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!