summaryrefslogtreecommitdiffstats
path: root/src/display/drawing-image.cpp
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2011-08-21 15:33:09 +0000
committerKrzysztof Kosinski <tweenk.pl@gmail.com>2011-08-21 15:33:09 +0000
commit0fc028f7050c91bfdb1a50ba8cb6462b2bf03d57 (patch)
tree1815a638b17050a590d36c2515121cf0d5dae129 /src/display/drawing-image.cpp
parentFix rendering glitches appearing when filtered, cached groups have (diff)
downloadinkscape-0fc028f7050c91bfdb1a50ba8cb6462b2bf03d57.tar.gz
inkscape-0fc028f7050c91bfdb1a50ba8cb6462b2bf03d57.zip
Filter background rendering now matches the SVG specification.
(bzr r10347.1.37)
Diffstat (limited to 'src/display/drawing-image.cpp')
-rw-r--r--src/display/drawing-image.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/display/drawing-image.cpp b/src/display/drawing-image.cpp
index 074393ab5..fa0402699 100644
--- a/src/display/drawing-image.cpp
+++ b/src/display/drawing-image.cpp
@@ -112,13 +112,13 @@ DrawingImage::_updateItem(Geom::IntRect const &, UpdateContext const &, unsigned
return STATE_ALL;
}
-void
-DrawingImage::_renderItem(DrawingContext &ct, Geom::IntRect const &area, unsigned flags)
+unsigned
+DrawingImage::_renderItem(DrawingContext &ct, Geom::IntRect const &area, unsigned flags, DrawingItem *stop_at)
{
bool outline = _drawing.outline();
if (!outline) {
- if (!_pixbuf) return;
+ if (!_pixbuf) return RENDER_OK;
Inkscape::DrawingContext::Save save(ct);
ct.transform(_ctm);
@@ -172,6 +172,7 @@ DrawingImage::_renderItem(DrawingContext &ct, Geom::IntRect const &area, unsigne
ct.setSource(rgba);
ct.stroke();
}
+ return RENDER_OK;
}
/** Calculates the closest distance from p to the segment a1-a2*/