summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2010-12-19 16:14:06 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2010-12-19 16:14:06 +0000
commit1aad3b71c0fd733075926297c439db3d43c592d6 (patch)
tree165520bd119a3a16286be2134ffb23ccd148f057 /desktop
parent60e8d57209988285d6fc7b9e7324b08f7bcc82c9 (diff)
downloadnetsurf-1aad3b71c0fd733075926297c439db3d43c592d6.tar.gz
netsurf-1aad3b71c0fd733075926297c439db3d43c592d6.tar.bz2
Enable knockout for tree redraw.
svn path=/trunk/netsurf/; revision=11099
Diffstat (limited to 'desktop')
-rw-r--r--desktop/tree.c9
1 files changed, 9 insertions, 0 deletions
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();
}