forked from enlightenment/efl
Fix bug with out-of-screen paiting in software_16
Things like expedite's "Image Qualit Scale" that blited with x,y negative were giving incorrect clip rectangle. SVN revision: 33326
This commit is contained in:
parent
acb7b70c19
commit
e6db6ad10b
|
@ -308,7 +308,7 @@ _soft16_adjust_areas(Evas_Rectangle *src,
|
|||
if (dst_clip->w <= 0) return 0;
|
||||
if (dst_clip->x >= dst_max_x) return 0;
|
||||
|
||||
_shrink(&dst_clip->x, &dst_clip->w, dst->x, dst_max_x);
|
||||
_shrink(&dst_clip->x, &dst_clip->w, 0, dst_max_x);
|
||||
if (dst_clip->w <= 0) return 0;
|
||||
|
||||
/* sanitise y */
|
||||
|
@ -335,7 +335,7 @@ _soft16_adjust_areas(Evas_Rectangle *src,
|
|||
if (dst_clip->h <= 0) return 0;
|
||||
if (dst_clip->y >= dst_max_y) return 0;
|
||||
|
||||
_shrink(&dst_clip->y, &dst_clip->h, dst->y, dst_max_y);
|
||||
_shrink(&dst_clip->y, &dst_clip->h, 0, dst_max_y);
|
||||
if (dst_clip->h <= 0) return 0;
|
||||
|
||||
return 1;
|
||||
|
|
Loading…
Reference in New Issue