summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pixman/pixman-filter.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pixman/pixman-filter.c b/pixman/pixman-filter.c
index ac89dda1..f9ad45f5 100644
--- a/pixman/pixman-filter.c
+++ b/pixman/pixman-filter.c
@@ -252,7 +252,10 @@ create_1d_filter (int width,
* and sample positions.
*/
- pos = ceil (frac - width / 2.0 - 0.5) + 0.5 - frac;
+ if (n_phases & 1)
+ pos = frac - width / 2.0;
+ else
+ pos = ceil (frac - width / 2.0 - 0.5) + 0.5 - frac;
total = 0;
for (x = 0; x < width; ++x, ++pos)