diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-06 16:48:29 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-06 16:48:29 +0200 |
commit | a909440c7671075127a98cffd7f1714114fc17bd (patch) | |
tree | e39ea84db612d7293c0011a23965b94026ce4337 /client/setup.c | |
parent | 6f4f05707740e43182317eb6d3d69a43f52815b2 (diff) |
use pads for body and tab bar
Diffstat (limited to 'client/setup.c')
-rw-r--r-- | client/setup.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/client/setup.c b/client/setup.c index fd37c13..22f7e4c 100644 --- a/client/setup.c +++ b/client/setup.c @@ -39,6 +39,13 @@ void w2_client_setup(int argc, char **argv) { w2_send_info(); + g_w2_ui_width = getmaxx(g_w2_ui_win); + g_w2_ui_height = getmaxy(g_w2_ui_win); + + g_w2_ui_pad_tabbar = newpad(1, g_w2_ui_width); + g_w2_ui_pad_body = newpad(g_w2_ui_height - 5, g_w2_ui_width); + scrollok(g_w2_ui_pad_body, true); + // check endianness g_w2_endianness = *_ptest; } |