diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-28 20:17:39 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-06-28 20:17:39 +0000 |
commit | 3128ecf2a5c94102e0e1659f947a345d36750afe (patch) | |
tree | a744c73c5464360bbddd1de5a4c83907abbc0048 /desktop/tree.c | |
parent | 4d19457c59fa911743137277d312ac2935293f8b (diff) | |
download | netsurf-3128ecf2a5c94102e0e1659f947a345d36750afe.tar.gz netsurf-3128ecf2a5c94102e0e1659f947a345d36750afe.tar.bz2 |
Unify content_redraw params in content_redraw_data struct. Core and RISC OS content handlers updated.
svn path=/trunk/netsurf/; revision=12529
Diffstat (limited to 'desktop/tree.c')
-rw-r--r-- | desktop/tree.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/desktop/tree.c b/desktop/tree.c index ee911ea67..0bf9ba625 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -1655,10 +1655,21 @@ static void tree_draw_node_element(struct tree *tree, if (c.x1 > c.x0 && c.y1 > c.y0) { /* Valid clip rectangles only */ + struct content_redraw_data data; + plot.clip(&c); - content_redraw(icon , x, y + icon_inset, - TREE_ICON_SIZE, TREE_ICON_SIZE, - &c, 1, 0, false, false); + + data.x = x; + data.y = y + icon_inset; + data.width = TREE_ICON_SIZE; + data.height = TREE_ICON_SIZE; + + data.background_colour = 0xFFFFFF; + data.scale = 1; + data.repeat_x = false; + data.repeat_y = false; + + content_redraw(icon, &data, &c); /* Restore previous clipping area */ plot.clip(clip); |