summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ac6488)
raw | patch | inline | side by side (parent: 2ac6488)
author | jucablues <jucablues@users.sourceforge.net> | |
Sat, 23 Feb 2008 04:27:03 +0000 (04:27 +0000) | ||
committer | jucablues <jucablues@users.sourceforge.net> | |
Sat, 23 Feb 2008 04:27:03 +0000 (04:27 +0000) |
src/display/pixblock-scaler.cpp | patch | blob | history | |
src/display/pixblock-transform.cpp | patch | blob | history |
index ddb4c4ee2652a5a53f4cb374a9be910f510167cf..5bf3c2762eb7c93884f9cbefb326ab3085d0fe7d 100644 (file)
#include "display/nr-filter-utils.h"
#include "libnr/nr-pixblock.h"
+#include "libnr/nr-blit.h"
namespace NR {
return;
}
+ if (from->mode != to->mode){
+ NRPixBlock *o_from = from;
+ from = new NRPixBlock;
+ nr_pixblock_setup_fast(from, to->mode, o_from->area.x0, o_from->area.y0, o_from->area.x1, o_from->area.y1, false);
+ nr_blit_pixblock_pixblock(from, o_from);
+ }
+
// Precalculate sizes of source and destination pixblocks
int from_width = from->area.x1 - from->area.x0;
int from_height = from->area.y1 - from->area.y0;
index ab9d2e68b9b800ca18510886fd171fada18a00c2..abe0f90c0f9aa86cbb48fb10926f04f8697b9982 100644 (file)
#include "display/nr-filter-utils.h"
+#include "libnr/nr-blit.h"
#include "libnr/nr-pixblock.h"
#include "libnr/nr-matrix.h"
return;
}
+ if (from->mode != to->mode){
+ NRPixBlock *o_from = from;
+ from = new NRPixBlock;
+ nr_pixblock_setup_fast(from, to->mode, o_from->area.x0, o_from->area.y0, o_from->area.x1, o_from->area.y1, false);
+ nr_blit_pixblock_pixblock(from, o_from);
+ }
+
// Precalculate sizes of source and destination pixblocks
int from_width = from->area.x1 - from->area.x0;
int from_height = from->area.y1 - from->area.y0;