aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Texture.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2013-01-23 08:46:08 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2013-01-23 08:46:08 (GMT)
commite7bfc639323bf5d4b207323b6e2fd275dcb5d825 (patch)
treef88b3e16a21300e3356a93cd3b0eedcf90128773 /src/FbTk/Texture.cc
parentc67743d010cd0346ef145b98bd1caec189e09dfd (diff)
downloadfluxbox-e7bfc639323bf5d4b207323b6e2fd275dcb5d825.zip
fluxbox-e7bfc639323bf5d4b207323b6e2fd275dcb5d825.tar.bz2
Improve calculation of brighter colors
The old code did not brighten up "pure" colors like "red", "green" and "blue" at all. The new code use a different precomputed LUT which is based upon simplified vector math, see the comments in FbTk/ColorLUT.cc
Diffstat (limited to 'src/FbTk/Texture.cc')
-rw-r--r--src/FbTk/Texture.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FbTk/Texture.cc b/src/FbTk/Texture.cc
index da45bc4..888b3c7 100644
--- a/src/FbTk/Texture.cc
+++ b/src/FbTk/Texture.cc
@@ -37,7 +37,7 @@
37namespace { 37namespace {
38 38
39unsigned short inline brighten(unsigned short c) { 39unsigned short inline brighten(unsigned short c) {
40 return 0x101 * FbTk::ColorLUT::PRE_MULTIPLY_1_5[c]; 40 return 0x101 * FbTk::ColorLUT::BRIGHTER_8[c];
41} 41}
42 42
43unsigned short inline darken(unsigned short c) { 43unsigned short inline darken(unsigned short c) {