From 0e56e9c21bc8765e8f1faff56c480e3c78913fa5 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Wed, 15 Dec 2010 19:48:59 +0000 Subject: Possible fix for issue reported by Chris Young. svn path=/trunk/netsurf/; revision=11062 --- desktop/tree.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'desktop/tree.c') diff --git a/desktop/tree.c b/desktop/tree.c index 18c930427..e06992fd2 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -1798,14 +1798,18 @@ void tree_draw(struct tree *tree, int x, int y, (TREE_TEXT_SIZE_PT * FIXTOINT(nscss_screen_dpi) + 36) / 72; + /* Set up clip rectangle */ clip.x0 = x + clip_x; clip.y0 = y + clip_y; clip.x1 = clip.x0 + clip_width; clip.y1 = clip.y0 + clip_height; + plot.clip(clip.x0, clip.y0, clip.x1, clip.y1); + /* Flat fill extents of clipping area */ plot.rectangle(clip.x0, clip.y0, clip.x1, clip.y1, &plot_style_fill_tree_background); - plot.clip(clip.x0, clip.y0, clip.x1, clip.y1); + + /* Draw the tree */ tree_draw_tree(tree, tree->root, x, y, clip); if (tree->editing != NULL) { -- cgit v1.2.3