From 754b97f48cd23a2a178a121917a3e58a609fc3c2 Mon Sep 17 00:00:00 2001 From: Jasper van de Gronde Date: Sun, 18 Apr 2010 16:17:05 +0200 Subject: Fix for bug #455302 and bug #165529, also partially fixes bounding box of various NR Arena Items as passed to filters (it used to explicitly make the bounding box larger) and makes nr-filter-displacement-map use rowstride (bzr r9350) --- src/display/pixblock-transform.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/display/pixblock-transform.cpp') diff --git a/src/display/pixblock-transform.cpp b/src/display/pixblock-transform.cpp index 73b467d5a..af05a9b88 100644 --- a/src/display/pixblock-transform.cpp +++ b/src/display/pixblock-transform.cpp @@ -148,6 +148,11 @@ void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &tra nr_blit_pixblock_pixblock(from, o_from); free_from_on_exit = true; } + + if (from->mode != NR_PIXBLOCK_MODE_R8G8B8A8P) { + // TODO: Fix this... (The problem is that for interpolation non-premultiplied colors should be premultiplied...) + g_warning("transform_bicubic does not properly support non-premultiplied images"); + } // Precalculate sizes of source and destination pixblocks int from_width = from->area.x1 - from->area.x0; -- cgit v1.2.3