Add pixman_image_set_source_clipping()
authorSøren Sandmann Pedersen <sandmann@redhat.com>
Fri, 17 Aug 2007 22:01:09 +0000 (18:01 -0400)
committerSøren Sandmann Pedersen <sandmann@redhat.com>
Fri, 17 Aug 2007 22:01:09 +0000 (18:01 -0400)
configure.ac
pixman/pixman-image.c
pixman/pixman.h

index 2901226..5bb6c27 100644 (file)
@@ -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])
 
index 2cbf88c..113ddec 100644 (file)
@@ -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.
index ae5aa7a..670f25a 100644 (file)
@@ -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,