diff options
author | Tim Keller <tjkeller.xyz> | 2025-01-11 18:12:17 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2025-01-11 18:12:17 -0600 |
commit | 6ca34464cfbdcbcf541862c92dcdcc1f2f7d3eda (patch) | |
tree | 0a95fbb8801f23c59872d939cec83e2f29556543 /st.h | |
parent | 3f8366fe353fe7d161821c282a135fb9d6184c35 (diff) | |
download | st-6ca34464cfbdcbcf541862c92dcdcc1f2f7d3eda.tar.xz st-6ca34464cfbdcbcf541862c92dcdcc1f2f7d3eda.zip |
add drag and drop patch
Diffstat (limited to 'st.h')
-rw-r--r-- | st.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -20,6 +20,10 @@ #define TRUECOLOR(r,g,b) (1 << 24 | (r) << 16 | (g) << 8 | (b)) #define IS_TRUECOL(x) (1 << 24 & (x)) +#define HEX_TO_INT(c) ((c) >= '0' && (c) <= '9' ? (c) - '0' : \ + (c) >= 'a' && (c) <= 'f' ? (c) - 'a' + 10 : \ + (c) >= 'A' && (c) <= 'F' ? (c) - 'A' + 10 : -1) + enum glyph_attribute { ATTR_NULL = 0, ATTR_SET = 1 << 0, |