diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-15 19:48:59 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2010-12-15 19:48:59 +0000 |
commit | 0e56e9c21bc8765e8f1faff56c480e3c78913fa5 (patch) | |
tree | 2b0ceb77d452ccd6e8724b77279da53ef0356a05 | |
parent | 20aedef6d81afc0798ec97081bcedb204809888c (diff) | |
download | netsurf-0e56e9c21bc8765e8f1faff56c480e3c78913fa5.tar.gz netsurf-0e56e9c21bc8765e8f1faff56c480e3c78913fa5.tar.bz2 |
Possible fix for issue reported by Chris Young.
svn path=/trunk/netsurf/; revision=11062
-rw-r--r-- | desktop/tree.c | 6 |
1 files changed, 5 insertions, 1 deletions
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) { |