From ccc8ef9606d90e7b032f6b20f965758df1774a58 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 16 Jul 2019 13:17:51 +0200 Subject: terminal: foreground/background in cell attributes are now uint32_t This reduces the cell size, and thus improves the cache behavour --- main.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index b88d8000..9dde438a 100644 --- a/main.c +++ b/main.c @@ -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) -- cgit v1.3