donot use clipping region for lower blitting

This commit is contained in:
Vincent Wei
2021-05-04 10:27:02 +08:00
parent 180bd4480f
commit 20a50bc094
+4 -2
View File
@@ -441,7 +441,7 @@ static int GAL_PixmanBlit (struct GAL_Surface *src, GAL_Rect *srcrect,
pixman_op_t op;
uint32_t alpha_bits;
int retv = -1;
pixman_region32_t clip_region;
//pixman_region32_t clip_region;
assert (src->tmp_data);
assert (dst->tmp_data);
@@ -488,9 +488,11 @@ static int GAL_PixmanBlit (struct GAL_Surface *src, GAL_Rect *srcrect,
srcrect->x, srcrect->y, srcrect->w, srcrect->h,
dstrect->x, dstrect->y, dstrect->w, dstrect->h);
#if 0
pixman_region32_init_rect (&clip_region,
dst->clip_rect.x, dst->clip_rect.y, dst->clip_rect.w, dst->clip_rect.h);
pixman_image_set_clip_region32 (dst_img, &clip_region);
#endif
retv = 0;
pixman_image_composite32 (op, src_img, msk_img, dst_img,
@@ -499,7 +501,7 @@ static int GAL_PixmanBlit (struct GAL_Surface *src, GAL_Rect *srcrect,
dstrect->x, dstrect->y,
srcrect->w, srcrect->h);
pixman_region32_fini (&clip_region);
//pixman_region32_fini (&clip_region);
out:
if (msk_img)