X-Git-Url: https://git.xinqibao.xyz/st.git/blobdiff_plain/1fe0a5f39a8755da4cd16e92f2ea00676d9ee3ca..2738592de6d1b53e1f5aa896c8fd3bb5a4204749:/st.c diff --git a/st.c b/st.c index fb084b1..91eb2cc 100644 --- a/st.c +++ b/st.c @@ -11,6 +11,7 @@ #include #include #include +#include #include #include #include @@ -379,7 +380,7 @@ static void tsetdirtattr(int); static void tsetmode(bool, bool, int *, int); static void tfulldirt(void); static void techo(char *, int); -static uint32_t tdefcolor(int *, int *, int); +static int32_t tdefcolor(int *, int *, int); static void tselcs(void); static void tdeftran(char); static inline bool match(uint, uint); @@ -1666,7 +1667,7 @@ tdeleteline(int n) { tscrollup(term.c.y, n); } -uint32_t +int32_t tdefcolor(int *attr, int *npar, int l) { int32_t idx = -1; uint r, g, b;