summaryrefslogtreecommitdiffstats
path: root/src/display/pixblock-transform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/display/pixblock-transform.cpp')
-rw-r--r--src/display/pixblock-transform.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/display/pixblock-transform.cpp b/src/display/pixblock-transform.cpp
index 78324434a..5d5b8a9cf 100644
--- a/src/display/pixblock-transform.cpp
+++ b/src/display/pixblock-transform.cpp
@@ -23,7 +23,7 @@ using std::floor;
#include "libnr/nr-blit.h"
#include "libnr/nr-pixblock.h"
-#include <2geom/matrix.h>
+#include <2geom/affine.h>
namespace NR {
@@ -48,7 +48,7 @@ inline void _check_index(NRPixBlock const * const pb, int const location, int co
}
}
-void transform_nearest(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &trans)
+void transform_nearest(NRPixBlock *to, NRPixBlock *from, Geom::Affine const &trans)
{
if (NR_PIXBLOCK_BPP(from) != 4 || NR_PIXBLOCK_BPP(to) != 4) {
g_warning("A non-32-bpp image passed to transform_nearest: scaling aborted.");
@@ -70,7 +70,7 @@ void transform_nearest(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &tra
int to_width = to->area.x1 - to->area.x0;
int to_height = to->area.y1 - to->area.y0;
- Geom::Matrix itrans = trans.inverse();
+ Geom::Affine itrans = trans.inverse();
// Loop through every pixel of destination image, a line at a time
for (int to_y = 0 ; to_y < to_height ; to_y++) {
@@ -133,7 +133,7 @@ inline static double sample(double const a, double const b,
return sum;
}
-void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &trans)
+void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Geom::Affine const &trans)
{
if (NR_PIXBLOCK_BPP(from) != 4 || NR_PIXBLOCK_BPP(to) != 4) {
g_warning("A non-32-bpp image passed to transform_bicubic: scaling aborted.");
@@ -160,7 +160,7 @@ void transform_bicubic(NRPixBlock *to, NRPixBlock *from, Geom::Matrix const &tra
int to_width = to->area.x1 - to->area.x0;
int to_height = to->area.y1 - to->area.y0;
- Geom::Matrix itrans = trans.inverse();
+ Geom::Affine itrans = trans.inverse();
// Loop through every pixel of destination image, a line at a time
for (int to_y = 0 ; to_y < to_height ; to_y++) {