summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
authorBrett Nash <nash@nash.id.au>2011-04-06 05:38:38 +0000
committerBrett Nash <nash@nash.id.au>2011-04-06 05:38:38 +0000
commitb96d2273347560cb415ffb2df3b059dc2229dd50 (patch)
tree6253ca2e3ff8f920036572e87322ba20244a135c /legacy/evas/src/lib/engines/common/evas_draw_main.c
parenta5d83e3cbe92df04e13e5f59b4c0885615bfd169 (diff)
Masking: Push a bit more arbitrary clipping
This seems to have got lost in my big messup before. This pushes enough of mask/arbitrary clip to be somewhat useful. I need to push a little more soon for it to be 100% happy, but this is useful level. SVN revision: 58373
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c20
1 files changed, 20 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 8b8511ab16..e2d4568114 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -153,6 +153,26 @@ evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc)
153} 153}
154 154
155EAPI void 155EAPI void
156evas_common_draw_context_set_mask(RGBA_Draw_Context *dc, RGBA_Image *mask, int x, int y, int w, int h)
157{
158 dc->mask.mask = mask;
159 dc->mask.x = x;
160 dc->mask.y = y;
161 dc->mask.w = w;
162 dc->mask.h = h;
163}
164
165EAPI void
166evas_common_draw_context_unset_mask(RGBA_Draw_Context *dc)
167{
168 dc->mask.mask = NULL;
169}
170
171
172
173
174
175EAPI void
156evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h) 176evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)
157{ 177{
158// if (dc->cutout.rects > 512) return; 178// if (dc->cutout.rects > 512) return;