summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/legacy/evas/src/lib/engines/common/evas_draw_main.c b/legacy/evas/src/lib/engines/common/evas_draw_main.c
index a2723e4949..8b8511ab16 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -155,6 +155,7 @@ evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc)
155EAPI void 155EAPI void
156evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h) 156evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
157{ 157{
158// if (dc->cutout.rects > 512) return;
158 if (dc->clip.use) 159 if (dc->clip.use)
159 { 160 {
160#if 1 // this is a bit faster 161#if 1 // this is a bit faster
@@ -493,6 +494,7 @@ evas_common_draw_context_apply_cutouts(RGBA_Draw_Context *dc)
493 494
494 if (!dc->clip.use) return NULL; 495 if (!dc->clip.use) return NULL;
495 if ((dc->clip.w <= 0) || (dc->clip.h <= 0)) return NULL; 496 if ((dc->clip.w <= 0) || (dc->clip.h <= 0)) return NULL;
497
496 498
497 res = evas_common_draw_context_cutouts_new(); 499 res = evas_common_draw_context_cutouts_new();
498 evas_common_draw_context_cutouts_add(res, dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h); 500 evas_common_draw_context_cutouts_add(res, dc->clip.x, dc->clip.y, dc->clip.w, dc->clip.h);