projects
/
hackover2013-badge-firmware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772d466
)
Fixed alpha blending at 100%
author
Kevin Townsend
<kevin@ktownsend.com>
Sun, 1 Apr 2012 16:04:39 +0000
(18:04 +0200)
committer
Kevin Townsend
<kevin@ktownsend.com>
Sun, 1 Apr 2012 16:04:39 +0000
(18:04 +0200)
drivers/displays/tft/colors.c
patch
|
blob
|
history
diff --git
a/drivers/displays/tft/colors.c
b/drivers/displays/tft/colors.c
index
7451264
..
e74f74a
100644
(file)
--- 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
fore
Color;
+ return
bg
Color;
// Note: This algorithm can definately be optimised!
This page took
0.024403 seconds
and
4
git commands to generate.