mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Possible fix for issue reported by Chris Young.
svn path=/trunk/netsurf/; revision=11062
This commit is contained in:
parent
20aedef6d8
commit
0e56e9c21b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user