diff --git a/gui/gui.c b/gui/gui.c index 94aaedd..180a65a 100644 --- a/gui/gui.c +++ b/gui/gui.c @@ -263,7 +263,7 @@ typedef struct { // --- -#if 0 +#if 1 void print_node_tree(GUI_Node *node, int level) { for(int i = 0; i < level; i++) @@ -272,13 +272,16 @@ void print_node_tree(GUI_Node *node, int level) } GUI_String text = node->debug_string; - printf(" %.*s\n", text.length, text.cstring); + printf(" %.*s", text.length, text.cstring); + //printf(" (%p)", node); + printf(" (Dirty?: %b)", node->dirty); + printf("\n"); - GUI_Node *child = node->rdic_node.first_child; + GUI_Node *child = GUI_NODE_FIRST_CHILD(node); while(child != NULL) { print_node_tree(child, level+1); - child = child->rdic_node.sibling; + child = GUI_NODE_SIBLING(child); } } #endif @@ -3349,7 +3352,6 @@ int main(void) xwindow.graphics_context); #endif - //print_node_tree(context.rdic.root, 1); //getc(stdin); bool running = true; @@ -3443,6 +3445,9 @@ int main(void) if(running && meh) { gui(&context, screen_rectangle); + if(0)print_node_tree( + (GUI_Node*)((GUI_Subtree*)context.background_layer.subtree_rdic.root)->rdic.root + , 1); //gui_layout_nodes(&context); #if 1 gui_layout_and_draw(&context);