From e6db6ad10b8c862878d23b6250b6777ac0f55471 Mon Sep 17 00:00:00 2001 From: Gustavo Sverzut Barbieri Date: Wed, 2 Jan 2008 20:58:29 +0000 Subject: [PATCH] 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 --- .../evas/src/modules/engines/software_16/evas_soft16_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/legacy/evas/src/modules/engines/software_16/evas_soft16_main.c b/legacy/evas/src/modules/engines/software_16/evas_soft16_main.c index 4cc5eefba0..b3dcde0c86 100644 --- a/legacy/evas/src/modules/engines/software_16/evas_soft16_main.c +++ b/legacy/evas/src/modules/engines/software_16/evas_soft16_main.c @@ -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;