Skip to content

Instantly share code, notes, and snippets.

@grandchild
Created February 21, 2016 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grandchild/7ecf4afb9ca7f605b4ab to your computer and use it in GitHub Desktop.
Save grandchild/7ecf4afb9ca7f605b4ab to your computer and use it in GitHub Desktop.
colormap patch
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