bug fixes + general X axis splitting!
This commit is contained in:
parent
5e99b09f8a
commit
dce97e6b3e
6 changed files with 69 additions and 33 deletions
12
cli/main.c
12
cli/main.c
|
|
@ -12,17 +12,22 @@ int main(int argc, char **argv) {
|
|||
|
||||
init_pair(1, COLOR_BLACK, COLOR_CYAN);
|
||||
init_pair(2, COLOR_BLACK, COLOR_RED);
|
||||
init_pair(3, COLOR_BLACK, COLOR_GREEN);
|
||||
|
||||
|
||||
// wbkgd(tree->root->surface->win, COLOR_PAIR(1));
|
||||
// wrefresh(tree->root->surface->win);
|
||||
|
||||
struct ct_node *const child1 = new_node(bounds_none(), tree->root);
|
||||
struct ct_node *const child2 = new_node(bounds_none(), tree->root);
|
||||
struct ct_node *const child3 = new_node(bounds_none(), tree->root);
|
||||
append_child_node(tree->root, child1);
|
||||
append_child_node(tree->root, child2);
|
||||
append_child_node(tree->root, child3);
|
||||
|
||||
wbkgd(child1->surface->win, COLOR_PAIR(1));
|
||||
wbkgd(child2->surface->win, COLOR_PAIR(2));
|
||||
wbkgd(child3->surface->win, COLOR_PAIR(3));
|
||||
|
||||
// wrefresh(child1->surface->win);
|
||||
|
||||
|
|
@ -32,12 +37,13 @@ int main(int argc, char **argv) {
|
|||
mvwprintw(child2->surface->win, 1, 0, "2@(%d,%d) %dx%d\n",
|
||||
child2->surface->dims->x, child2->surface->dims->y,
|
||||
child2->surface->dims->width, child2->surface->dims->height);
|
||||
wrefresh(child2->surface->win);
|
||||
|
||||
mvwprintw(child2->surface->win, 1, 0, "2@(%d,%d) %dx%d\n",
|
||||
child3->surface->dims->x, child3->surface->dims->y,
|
||||
child3->surface->dims->width, child3->surface->dims->height);
|
||||
|
||||
while (1) {
|
||||
ct_update(tree);
|
||||
napms(100);
|
||||
// napms(100);
|
||||
}
|
||||
|
||||
destroy_tree(tree);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue