diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-12 21:24:35 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-12 21:24:35 +0000 |
commit | f777a58ec5265b616a84264cb513b8bfb1802157 (patch) | |
tree | e13b75a85c4762c4f6d7e992efc601b6da5271f2 /desktop/tree.c | |
parent | d1d3a65b06bab49d0658915772ef6d19ad8696d5 (diff) | |
download | netsurf-f777a58ec5265b616a84264cb513b8bfb1802157.tar.gz netsurf-f777a58ec5265b616a84264cb513b8bfb1802157.tar.bz2 |
Set expansion toggle position with respect to TREE_LINE_HEIGHT.
svn path=/trunk/netsurf/; revision=11042
Diffstat (limited to 'desktop/tree.c')
-rw-r--r-- | desktop/tree.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |