From f777a58ec5265b616a84264cb513b8bfb1802157 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 12 Dec 2010 21:24:35 +0000 Subject: Set expansion toggle position with respect to TREE_LINE_HEIGHT. svn path=/trunk/netsurf/; revision=11042 --- desktop/tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop') diff --git a/desktop/tree.c b/desktop/tree.c index c19550a4f..5dfbe8eed 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -44,7 +44,7 @@ #define TREE_ICON_SIZE 17 #define NODE_INSTEP 20 -#define TREE_LINE_HEIGHT 20 +#define TREE_LINE_HEIGHT 50 static plot_font_style_t plot_fstyle = { .family = PLOT_FONT_FAMILY_SANS_SERIF, @@ -1488,7 +1488,7 @@ static void tree_draw_node_expansion_toggle(struct tree *tree, if ((node->child != NULL) || (node->data.next != NULL)) { x = tree_x + node->box.x - (NODE_INSTEP / 2) - 4; - y = tree_y + node->box.y - (TREE_LINE_HEIGHT / 2) + 16; + y = tree_y + node->box.y + (TREE_LINE_HEIGHT - 9) / 2; plot.rectangle(x, y, x + 9, y + 9, plot_style_fill_white); plot.rectangle(x , y, x + 8, y + 8, &plot_style_stroke_tree_furniture); -- cgit v1.2.3