summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <sandmann@redhat.com>2009-04-29 23:23:08 -0400
committerSøren Sandmann Pedersen <sandmann@redhat.com>2009-04-29 23:23:08 -0400
commit6656a565f2156a7f129e4c4fea43dda0dd4e2598 (patch)
treee9842e81a16d3f69178b52b694a9e5083979241e
parent848e372cfecd519f56e86f800d36c950522a04d3 (diff)
Use the AREA filter for 'best' and 'good'area
-rw-r--r--pixman/pixman-transformed.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pixman/pixman-transformed.c b/pixman/pixman-transformed.c
index 3e35daaa..83ff553d 100644
--- a/pixman/pixman-transformed.c
+++ b/pixman/pixman-transformed.c
@@ -447,9 +447,7 @@ ACCESS(fbFetchTransformed)(bits_image_t * pict, int x, int y, int width,
v.vector[2] += unit.vector[2];
}
}
- else if (pict->common.filter == PIXMAN_FILTER_BILINEAR ||
- pict->common.filter == PIXMAN_FILTER_GOOD ||
- pict->common.filter == PIXMAN_FILTER_BEST)
+ else if (pict->common.filter == PIXMAN_FILTER_BILINEAR)
{
/* Let the bilinear code pretend that pixels fall on integer coordinaters */
adjust (&v, &unit, -(pixman_fixed_1 / 2));
@@ -464,7 +462,9 @@ ACCESS(fbFetchTransformed)(bits_image_t * pict, int x, int y, int width,
v.vector[2] += unit.vector[2];
}
}
- else if (pict->common.filter == PIXMAN_FILTER_AREA)
+ else if (pict->common.filter == PIXMAN_FILTER_AREA ||
+ pict->common.filter == PIXMAN_FILTER_BEST ||
+ pict->common.filter == PIXMAN_FILTER_GOOD)
{
/* FIXME: compute this based on the transformation, or maybe pass it in as a filter parameter?
* Or compute it dynamically for perspective transformations.