From e77893b29cf53a9d6933cab0f9ae9e78b30a6592 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 4 Apr 2011 03:14:01 +0200 Subject: draw: Fix bug in display list culling. The node bbox was not transformed to device space before the visibility test. --- fitz/dev_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fitz/dev_list.c b/fitz/dev_list.c index d90f64c2..bfa4ddf1 100644 --- a/fitz/dev_list.c +++ b/fitz/dev_list.c @@ -362,9 +362,10 @@ fz_executedisplaylist(fz_displaylist *list, fz_device *dev, fz_matrix topctm, fz for (node = list->first; node; node = node->next) { fz_matrix ctm = fz_concat(node->ctm, topctm); + fz_rect rect = fz_transformrect(topctm, node->rect); /* cull objects to draw using a quick visibility test */ - if (clipped || fz_isemptybbox(fz_intersectbbox(fz_roundrect(node->rect), bounds))) + if (clipped || fz_isemptybbox(fz_intersectbbox(fz_roundrect(rect), bounds))) { switch (node->cmd) { -- cgit v1.2.3