diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2010-04-18 14:17:05 +0000 |
|---|---|---|
| committer | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2010-04-18 14:17:05 +0000 |
| commit | 754b97f48cd23a2a178a121917a3e58a609fc3c2 (patch) | |
| tree | a4ce2145606a599b0a31d845752867f892f57df5 /src/display/pixblock-transform.cpp | |
| parent | Correct #endif placement. Should fix win32 build. (diff) | |
| download | inkscape-754b97f48cd23a2a178a121917a3e58a609fc3c2.tar.gz inkscape-754b97f48cd23a2a178a121917a3e58a609fc3c2.zip | |
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)
Diffstat (limited to 'src/display/pixblock-transform.cpp')
| -rw-r--r-- | src/display/pixblock-transform.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
