mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-24 00:54:18 +08:00
donot use clipping region for lower blitting
This commit is contained in:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user