From 07274513e984f0b5544586c74508ccd16e7dcafa Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 13 Jan 2013 17:29:19 +1000 Subject: Remove EFL, since it's been released now. --- .../src/lib/engines/common/evas_rectangle_main.c | 91 ---------------------- 1 file changed, 91 deletions(-) delete mode 100644 libraries/evas/src/lib/engines/common/evas_rectangle_main.c (limited to 'libraries/evas/src/lib/engines/common/evas_rectangle_main.c') diff --git a/libraries/evas/src/lib/engines/common/evas_rectangle_main.c b/libraries/evas/src/lib/engines/common/evas_rectangle_main.c deleted file mode 100644 index fc25fd0..0000000 --- a/libraries/evas/src/lib/engines/common/evas_rectangle_main.c +++ /dev/null @@ -1,91 +0,0 @@ -#include "evas_common.h" -#include "evas_blend_private.h" - -static void rectangle_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h); - -EAPI void -evas_common_rectangle_init(void) -{ -} - -EAPI void -evas_common_rectangle_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h) -{ - Cutout_Rects *rects; - Cutout_Rect *r; - int c, cx, cy, cw, ch; - int i; - /* handle cutouts here! */ - - if ((w <= 0) || (h <= 0)) return; - if (!(RECTS_INTERSECT(x, y, w, h, 0, 0, dst->cache_entry.w, dst->cache_entry.h))) - 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; - evas_common_draw_context_clip_clip(dc, 0, 0, dst->cache_entry.w, dst->cache_entry.h); - /* no cutouts - cut right to the chase */ - if (!dc->cutout.rects) - { - rectangle_draw_internal(dst, dc, x, y, w, h); - } - else - { - 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)) - { - rects = evas_common_draw_context_apply_cutouts(dc); - for (i = 0; i < rects->active; ++i) - { - r = rects->rects + i; - evas_common_draw_context_set_clip(dc, r->x, r->y, r->w, r->h); - rectangle_draw_internal(dst, dc, x, y, w, h); - } - 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; -} - -static void -rectangle_draw_internal(RGBA_Image *dst, RGBA_Draw_Context *dc, int x, int y, int w, int h) -{ - RGBA_Gfx_Func func; - int yy; - DATA32 *ptr; - - RECTS_CLIP_TO_RECT(x, y, w, h, dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h); - if ((w <= 0) || (h <= 0)) return; - -#ifdef HAVE_PIXMAN -# ifdef PIXMAN_RECT - pixman_op_t op = PIXMAN_OP_SRC; // _EVAS_RENDER_COPY - - if (dc->render_op == _EVAS_RENDER_BLEND) - op = PIXMAN_OP_OVER; - - if ((dst->pixman.im) && (dc->col.pixman_color_image)) - { - pixman_image_composite(op, dc->col.pixman_color_image, NULL, - dst->pixman.im, x, y, 0, 0, - x, y, w, h); - } - else -# endif -#endif - { - func = evas_common_gfx_func_composite_color_span_get(dc->col.col, dst, w, dc->render_op); - ptr = dst->image.data + (y * dst->cache_entry.w) + x; - for (yy = 0; yy < h; yy++) - { -#ifdef EVAS_SLI - if (((yy + y) % dc->sli.h) == dc->sli.y) -#endif - { - func(NULL, NULL, dc->col.col, ptr, w); - } - ptr += dst->cache_entry.w; - } - } -} -- cgit v1.1