From: Søren Sandmann Pedersen Date: Fri, 17 Aug 2007 22:01:09 +0000 (-0400) Subject: Add pixman_image_set_source_clipping() X-Git-Tag: 1.0_branch~1441 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3e74bc431908dd42775d8e82ca2e4d589de820cb;p=profile%2Fivi%2Fpixman.git Add pixman_image_set_source_clipping() --- diff --git a/configure.ac b/configure.ac index 2901226..5bb6c27 100644 --- a/configure.ac +++ b/configure.ac @@ -42,7 +42,7 @@ AC_PREREQ([2.57]) m4_define([pixman_major], 0) m4_define([pixman_minor], 9) -m4_define([pixman_micro], 4) +m4_define([pixman_micro], 5) m4_define([pixman_version],[pixman_major.pixman_minor.pixman_micro]) diff --git a/pixman/pixman-image.c b/pixman/pixman-image.c index 2cbf88c..113ddec 100644 --- a/pixman/pixman-image.c +++ b/pixman/pixman-image.c @@ -466,6 +466,18 @@ pixman_image_set_filter (pixman_image_t *image, return TRUE; } +void +pixman_image_set_source_clipping (pixman_image_t *image, + pixman_bool_t source_clipping) +{ + image_common_t *common = &image->common; + + if (source_clipping) + common->src_clip = &common->clip_region; + else + common->src_clip = &common->full_region; +} + /* Unlike all the other property setters, this function does not * copy the content of indexed. Doing this copying is simply * way, way too expensive. diff --git a/pixman/pixman.h b/pixman/pixman.h index ae5aa7a..670f25a 100644 --- a/pixman/pixman.h +++ b/pixman/pixman.h @@ -470,6 +470,8 @@ pixman_bool_t pixman_image_set_filter (pixman_image_t void pixman_image_set_filter_params (pixman_image_t *image, pixman_fixed_t *params, int n_params); +void pixman_image_set_source_cliping (pixman_image_t *image, + pixman_bool_t source_clipping); void pixman_image_set_alpha_map (pixman_image_t *image, pixman_image_t *alpha_map, int16_t x,