improvenments to the ui
This commit is contained in:
16
main.c
16
main.c
@ -30,9 +30,9 @@ int main() {
|
||||
getmaxyx(stdscr, terminal_height, terminal_width);
|
||||
WINDOW *win_t = newwin(1, terminal_width, 0, 0);
|
||||
WINDOW *win_b = newwin(1, terminal_width, terminal_height-1, 0);
|
||||
WINDOW *win_l = newwin(terminal_height-2, terminal_width/3, 1, 0);
|
||||
WINDOW *win_m = newwin(terminal_height-2, terminal_width/3, 1, (terminal_width/3));
|
||||
WINDOW *win_r = newwin(terminal_height-2, terminal_width/3, 1, ((terminal_width/3)*2));
|
||||
WINDOW *win_l = newwin(terminal_height-2, terminal_width/8, 1, 0);
|
||||
WINDOW *win_m = newwin(terminal_height-2, terminal_width/3, 1, (terminal_width/8));
|
||||
WINDOW *win_r = newwin(terminal_height-2, terminal_width/3, 1, ((terminal_width/2)));
|
||||
|
||||
pthread_t thread_b;
|
||||
pthread_t thread_t;
|
||||
@ -108,15 +108,15 @@ void render_pass(WINDOW *win_t, WINDOW *win_b, WINDOW *win_l, WINDOW *win_m, WIN
|
||||
|
||||
wresize(win_t, 1, terminal_width);
|
||||
wresize(win_b, terminal_height, terminal_width/3);
|
||||
wresize(win_m, terminal_height-2, terminal_width/3);
|
||||
wresize(win_l, terminal_height-2, terminal_width/3);
|
||||
wresize(win_r, terminal_height-2, terminal_width/3);
|
||||
wresize(win_l, terminal_height-2, terminal_width/8);
|
||||
wresize(win_m, terminal_height-2, (terminal_width/2)-(terminal_width/8));
|
||||
wresize(win_r, terminal_height-2, terminal_width/2);
|
||||
|
||||
mvwin(win_t, 0, 0);
|
||||
mvwin(win_b, terminal_height-1, 0);
|
||||
mvwin(win_l, 1, 0);
|
||||
mvwin(win_m, 1, (terminal_width/3));
|
||||
mvwin(win_r, 1, ((terminal_width/3)*2));
|
||||
mvwin(win_m, 1, (terminal_width/8));
|
||||
mvwin(win_r, 1, ((terminal_width/2)));
|
||||
|
||||
|
||||
status |= STATUS_UPDATE_SCREEN_0;
|
||||
|
Reference in New Issue
Block a user