Created
February 21, 2016 18:28
-
-
Save grandchild/7ecf4afb9ca7f605b4ab to your computer and use it in GitHub Desktop.
colormap patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/trans/colour_map.c b/trans/colour_map.c | |
index d31a3b8..edc861b 100644 | |
--- a/trans/colour_map.c | |
+++ b/trans/colour_map.c | |
@@ -107,7 +107,7 @@ static int load_config(ComponentContext *ctx, const uint8_t *buf, int buf_len) | |
} | |
R32(temp); | |
- clm->blend_adj = temp & 0xff; | |
+ clm->blend_adj = 0xff - (temp & 0xff); | |
clm->speed = (temp >> 24) & 0xff; | |
clm->no_skip_fast = (temp >> 16) & 0xff; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment