Enlightenment CVS committal
Author : barbieri
Project : e17
Module : libs/evas
Dir : e17/libs/evas/src/modules/engines/software_16
Modified Files:
evas_soft16_rectangle.c
Log Message:
Minor cleanup on software_16, evas_soft16_rectangle.c
===================================================================
RCS file:
/cvs/e/e17/libs/evas/src/modules/engines/software_16/evas_soft16_rectangle.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -3 -r1.3 -r1.4
--- evas_soft16_rectangle.c 25 Oct 2007 16:17:19 -0000 1.3
+++ evas_soft16_rectangle.c 27 Oct 2007 21:06:58 -0000 1.4
@@ -83,7 +83,7 @@
Evas_Rectangle dr;
Cutout_Rects *rects;
Cutout_Rect *r;
- int c, cx, cy, cw, ch;
+ struct RGBA_Draw_Context_clip c_bkp;
int i;
/* handle cutouts here! */
@@ -103,14 +103,14 @@
return;
}
- /* save out clip info */
- c = dc->clip.use; cx = dc->clip.x; cy = dc->clip.y; cw = dc->clip.w; ch =
dc->clip.h;
+ c_bkp = dc->clip;
+
evas_common_draw_context_clip_clip(dc, 0, 0, dst->w, dst->h);
evas_common_draw_context_clip_clip(dc, x, y, w, h);
/* our clip is 0 size.. abort */
if ((dc->clip.w <= 0) || (dc->clip.h <= 0))
{
- dc->clip.use = c; dc->clip.x = cx; dc->clip.y = cy; dc->clip.w = cw;
dc->clip.h = ch;
+ dc->clip = c_bkp;
return;
}
rects = evas_common_draw_context_apply_cutouts(dc);
@@ -121,7 +121,6 @@
_soft16_rectangle_draw_int(dst, dc, dr);
}
evas_common_draw_context_apply_clear_cutouts(rects);
- /* restore clip info */
- dc->clip.use = c; dc->clip.x = cx; dc->clip.y = cy; dc->clip.w = cw;
dc->clip.h = ch;
+ dc->clip = c_bkp;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs