diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-07-16 11:17:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-07-16 11:17:51 +0000 |
| commit | ccc8ef9606d90e7b032f6b20f965758df1774a58 (patch) | |
| tree | 6d01522e25b5d88e05930b399a3d98f4c5a97d9f /main.c | |
| parent | csi: implement \E[21m (disable bold) (diff) | |
terminal: foreground/background in cell attributes are now uint32_t
This reduces the cell size, and thus improves the cache behavour
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -33,8 +33,13 @@ #define min(x, y) ((x) < (y) ? (x) : (y)) #define max(x, y) ((x) > (y) ? (x) : (y)) +#if 0 static const struct rgb default_foreground = {0.86, 0.86, 0.86}; static const struct rgb default_background = {0.067, 0.067, 0.067}; +#else +static const uint32_t default_foreground = 0xdcdccc; +static const uint32_t default_background = 0x111111; +#endif static void shm_format(void *data, struct wl_shm *wl_shm, uint32_t format) |
