diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-06 20:48:20 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-06 20:48:20 +0200 |
commit | fedc13d6564dcf110ba3b7faca3c34a28c7905cb (patch) | |
tree | 422a499d46e5e63618201054218300e04ed134fe /client/ui.c | |
parent | ae8beb20a2a837824cfda4d748fbe07b26a161f0 (diff) |
error logging working
Diffstat (limited to 'client/ui.c')
-rw-r--r-- | client/ui.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/ui.c b/client/ui.c index 10e1814..41a392f 100644 --- a/client/ui.c +++ b/client/ui.c @@ -13,6 +13,7 @@ WINDOW *g_w2_ui_win; WINDOW *g_w2_ui_pad_tabbar; WINDOW *g_w2_ui_pad_body; +int g_w2_ui_pad_body_scroll = 0; unsigned int g_w2_ui_width = 0; unsigned int g_w2_ui_height = 0; w2_e_ui_tabs g_w2_ui_current_tab = W2_UI_TAB_START; @@ -43,7 +44,8 @@ void w2_ui_paint() { w2_timer_start(W2_TIMER_UPDATE); } prefresh(g_w2_ui_pad_tabbar, 0, 0, 2, 0, 2, g_w2_ui_width - 1); - prefresh(g_w2_ui_pad_body, 0, 0, 4, 0, g_w2_ui_height - 2, g_w2_ui_width - 1); + prefresh(g_w2_ui_pad_body, W2_MAX(0, g_w2_ui_pad_body_scroll), 0, + 4 - W2_MIN(0, g_w2_ui_pad_body_scroll), 0, g_w2_ui_height - 2, g_w2_ui_width - 1); // wrefresh(g_w2_ui_win); } |