summaryrefslogtreecommitdiff
path: root/desktop/knockout.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-07-02 17:23:49 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-07-02 17:23:49 +0000
commitdbe40cffb39f2590e98fe01a43ff118887aa7b2c (patch)
treeba936301c404dc8201def6bbb0b08b11df2d5cae /desktop/knockout.c
parent0f36a3e6a50513078e8bfd69fb679af5b3cfce76 (diff)
downloadnetsurf-dbe40cffb39f2590e98fe01a43ff118887aa7b2c.tar.gz
netsurf-dbe40cffb39f2590e98fe01a43ff118887aa7b2c.tar.bz2
Re-instate the knockout renderers after a nested flush(). Make so knockout rendering is always used.
svn path=/trunk/netsurf/; revision=2693
Diffstat (limited to 'desktop/knockout.c')
-rw-r--r--desktop/knockout.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/desktop/knockout.c b/desktop/knockout.c
index 56bd6cf92..6767838cc 100644
--- a/desktop/knockout.c
+++ b/desktop/knockout.c
@@ -16,7 +16,7 @@
#include "netsurf/image/bitmap.h"
#include "netsurf/utils/log.h"
-#define NDEBUG
+//#define NDEBUG
#define KNOCKOUT_ENTRIES 3072 /* 40 bytes each */
#define KNOCKOUT_BOXES 768 /* 28 bytes each */
@@ -405,6 +405,10 @@ bool knockout_plot_flush(void)
knockout_box_cur = 0;
knockout_polygon_cur = 0;
knockout_list = NULL;
+
+ /* re-instate knockout plotters if we are still active */
+ if (nested_depth > 0)
+ plot = knockout_plotters;
return success;
}
@@ -440,7 +444,7 @@ void knockout_calculate(int x0, int y0, int x1, int y1, struct knockout_box *own
if (owner) {
/* first valid element: update child reference */
owner->child = parent->next;
- /* have we deleted all children node? */
+ /* have we deleted all child nodes? */
if (!owner->child)
owner->deleted = true;
} else {