From 1aad3b71c0fd733075926297c439db3d43c592d6 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 19 Dec 2010 16:14:06 +0000 Subject: [PATCH] Enable knockout for tree redraw. svn path=/trunk/netsurf/; revision=11099 --- desktop/tree.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/desktop/tree.c b/desktop/tree.c index e436339f1..d5d6df725 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -30,6 +30,7 @@ #include "content/hlcache.h" #include "css/utils.h" #include "desktop/browser.h" +#include "desktop/knockout.h" #include "desktop/textarea.h" #include "desktop/textinput.h" #include "desktop/tree.h" @@ -1802,6 +1803,10 @@ void tree_draw(struct tree *tree, int x, int y, assert(tree != NULL); assert(tree->root != NULL); + /* Start knockout rendering if it's available for this plotter */ + if (plot.option_knockout) + knockout_plot_start(&plot); + /* Set up clip rectangle */ clip.x0 = x + clip_x; clip.y0 = y + clip_y; @@ -1828,6 +1833,10 @@ void tree_draw(struct tree *tree, int x, int y, textarea_redraw(tree->textarea, x, y, clip.x0, clip.y0, clip.x1, clip.y1); } + + /* Rendering complete */ + if (plot.option_knockout) + knockout_plot_end(); }