Fixed alpha blending at 100%
authorKevin Townsend <kevin@ktownsend.com>
Sun, 1 Apr 2012 16:04:39 +0000 (18:04 +0200)
committerKevin Townsend <kevin@ktownsend.com>
Sun, 1 Apr 2012 16:04:39 +0000 (18:04 +0200)
drivers/displays/tft/colors.c

index 7451264..e74f74a 100644 (file)
@@ -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!
 
This page took 0.024403 seconds and 4 git commands to generate.