diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2021-05-29 23:51:55 -0400 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2021-05-29 23:51:55 -0400 |
commit | 331e8bcb0d5d9e86201c0aa2a75a55b0b12f132c (patch) | |
tree | 8ac94f9b6d50f4931150d3da54edd866d31242c5 /src/textadept.c | |
parent | 0153f16c581b0c9ebb4b65913fddac5690dfa81e (diff) |
Updated to Scintilla 5.0.3.
Updated themes to use new `view.element_color` and treat all colors as opaque if no alpha was given.
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/textadept.c b/src/textadept.c index 7b530105..cf8f7995 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -1091,6 +1091,10 @@ static sptr_t luaL_checkscintilla(lua_State *L, int *arg, int type) { int i = luaL_checkinteger(L, (*arg)++); return i >= 0 ? i - 1 : i; // do not adjust significant values like -1 } + if (type == SCOLOR) { + int color = luaL_checkinteger(L, (*arg)++); + return color > 0xFFFFFF ? color : color | 0xFF000000; // backward compatibility + } return type >= SINT && type <= SKEYMOD ? luaL_checkinteger(L, (*arg)++) : 0; } |