diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-01-23 08:46:08 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-01-23 08:46:08 (GMT) |
commit | e7bfc639323bf5d4b207323b6e2fd275dcb5d825 (patch) | |
tree | f88b3e16a21300e3356a93cd3b0eedcf90128773 /src/FbTk/ColorLUT.hh | |
parent | c67743d010cd0346ef145b98bd1caec189e09dfd (diff) | |
download | fluxbox-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/ColorLUT.hh')
-rw-r--r-- | src/FbTk/ColorLUT.hh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/FbTk/ColorLUT.hh b/src/FbTk/ColorLUT.hh index 66b8493..a9ff410 100644 --- a/src/FbTk/ColorLUT.hh +++ b/src/FbTk/ColorLUT.hh | |||
@@ -24,10 +24,18 @@ namespace FbTk { | |||
24 | 24 | ||
25 | namespace ColorLUT { | 25 | namespace ColorLUT { |
26 | 26 | ||
27 | #if 0 // unused | ||
27 | extern const unsigned char PRE_MULTIPLY_1_5[256]; | 28 | extern const unsigned char PRE_MULTIPLY_1_5[256]; |
28 | extern const unsigned char PRE_MULTIPLY_1_125[256]; | 29 | extern const unsigned char PRE_MULTIPLY_1_125[256]; |
30 | #endif | ||
29 | extern const unsigned char PRE_MULTIPLY_0_75[256]; | 31 | extern const unsigned char PRE_MULTIPLY_0_75[256]; |
30 | 32 | ||
33 | extern const unsigned char BRIGHTER_4[256]; | ||
34 | extern const unsigned char BRIGHTER_8[256]; | ||
35 | #if 0 // unused | ||
36 | extern const unsigned char BRIGHTER_16[256]; | ||
37 | #endif | ||
38 | |||
31 | } | 39 | } |
32 | 40 | ||
33 | } | 41 | } |