core: improve output of /debug windows
This commit is contained in:
parent
705dff4a00
commit
5fde03f7fc
@ -194,14 +194,15 @@ debug_windows_tree_display (struct t_gui_window_tree *tree, int indent)
|
||||
/* leaf */
|
||||
snprintf (format,
|
||||
sizeof (format),
|
||||
"%%-%dsleaf: 0x%%lx (parent:0x%%lx), win=0x%%lx, "
|
||||
"child1=0x%%lx, child2=0x%%lx, %%d,%%d %%dx%%d, "
|
||||
"%%d%%%%x%%d%%%%",
|
||||
"%%-%dsleaf: 0x%%lx, parent:0x%%lx, child1=0x%%lx, "
|
||||
"child2=0x%%lx, win=0x%%lx (%%d,%%d %%dx%%d"
|
||||
" %%d%%%%x%%d%%%%)",
|
||||
indent * 2);
|
||||
gui_chat_printf (NULL,
|
||||
format,
|
||||
" ", tree, tree->parent_node, tree->window,
|
||||
" ", tree, tree->parent_node,
|
||||
tree->child1, tree->child2,
|
||||
tree->window,
|
||||
tree->window->win_x, tree->window->win_y,
|
||||
tree->window->win_width, tree->window->win_height,
|
||||
tree->window->win_width_pct,
|
||||
@ -212,12 +213,13 @@ debug_windows_tree_display (struct t_gui_window_tree *tree, int indent)
|
||||
/* node */
|
||||
snprintf (format,
|
||||
sizeof (format),
|
||||
"%%-%dsnode: 0x%%lx (parent:0x%%lx), win=0x%%lx, "
|
||||
"child1=0x%%lx, child2=0x%%lx",
|
||||
"%%-%dsnode: 0x%%lx, parent:0x%%lx, pct:%%d, "
|
||||
"horizontal:%%d, child1=0x%%lx, child2=0x%%lx",
|
||||
indent * 2);
|
||||
gui_chat_printf (NULL,
|
||||
format,
|
||||
" ", tree, tree->parent_node, tree->window,
|
||||
" ", tree, tree->parent_node, tree->split_pct,
|
||||
tree->split_horizontal,
|
||||
tree->child1, tree->child2);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user