add Anti-Aliasing (very rough draft algorithm, NOT FINAL version) to raskter lib...
[blender.git] / source / blender / blenkernel / intern / mask.c
index 012ce97b4d75fa380e1d37e26d05486889108854..7e9f189ae0121d773c99ec2da75b6b73c7159eb4 100644 (file)
@@ -2089,7 +2089,7 @@ int BKE_mask_get_duration(Mask *mask)
 
 /* rasterization */
 void BKE_mask_rasterize(Mask *mask, int width, int height, float *buffer,
-                        const short do_aspect_correct)
+                        const short do_aspect_correct, int do_mask_aa)
 {
        MaskLayer *masklay;
 
@@ -2154,7 +2154,7 @@ void BKE_mask_rasterize(Mask *mask, int width, int height, float *buffer,
 
                                if (tot_diff_point) {
                                        PLX_raskterize(diff_points, tot_diff_point,
-                                                      buffer_tmp, width, height);
+                                                      buffer_tmp, width, height, do_mask_aa);
 
                                        if (tot_diff_feather_points) {
                                                PLX_raskterize_feather(diff_points, tot_diff_point,