aboutsummaryrefslogtreecommitdiff
path: root/shm.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-08-13 16:35:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-08-13 16:35:17 +0000
commit17070a0d54e66641839805c68cfe1670c7012525 (patch)
tree874d7bb50be9fd724daf50956a7575cd1c68aebb /shm.h
parentdoc: footclient.1: move DESCRIPTION up before OPTIONS (diff)
config: add tweak.render-timer option
This can be set to 'none' (the default), 'osd', 'log' or 'both'. When 'osd' is enabled, we'll render the frame rendering time to a sub-surface after each frame. When 'log' is enabled, the frame rendering time is logged on stderr.
Diffstat (limited to 'shm.h')
-rw-r--r--shm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/shm.h b/shm.h
index 0bfb3839..fc48308e 100644
--- a/shm.h
+++ b/shm.h
@@ -50,4 +50,5 @@ struct terminal;
static inline unsigned long shm_cookie_grid(const struct terminal *term) { return (unsigned long)((uintptr_t)term + 0); }
static inline unsigned long shm_cookie_search(const struct terminal *term) { return (unsigned long)((uintptr_t)term + 1); }
static inline unsigned long shm_cookie_scrollback_indicator(const struct terminal *term) { return (unsigned long)(uintptr_t)term + 2; }
-static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 3 + (n)); }
+static inline unsigned long shm_cookie_render_timer(const struct terminal *term) { return (unsigned long)(uintptr_t)term + 3; }
+static inline unsigned long shm_cookie_csd(const struct terminal *term, int n) { return (unsigned long)((uintptr_t)term + 4 + (n)); }