diff options
author | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-06-04 03:07:49 -0400 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@redhat.com> | 2012-06-04 03:07:49 -0400 |
commit | c2324f148e4f7984e551a6b3778e6f89154361a4 (patch) | |
tree | cadbf2abc26ef0516f373589ced0024dcd0c000e | |
parent | 8ba84091b5d4a7956ec0de892fcd221c66bbb17a (diff) |
upscalesupersampling
-rw-r--r-- | demos/upscale.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/demos/upscale.c b/demos/upscale.c index 85863aa0..ae2e0ff9 100644 --- a/demos/upscale.c +++ b/demos/upscale.c @@ -134,6 +134,7 @@ scale_image (pixman_image_t *image, double scale_x, double scale_y) pixman_transform_from_pixman_f_transform (&transform, &iftransform); pixman_image_set_transform (image, &transform); + pixman_image_set_repeat (image, PIXMAN_REPEAT_PAD); pixman_image_set_filter (image, PIXMAN_FILTER_BILINEAR, NULL, 0); pixman_image_set_sampling (image, PIXMAN_SAMPLE_BOX); @@ -167,7 +168,7 @@ main (int argc, char **argv) printf ("Loaded file\n"); - result = scale_image (image, 1/4.0, 3); + result = scale_image (image, 1/7.0, 1/7.0); show_image (result); |