summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_draw_main.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-05 13:52:59 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-05 13:52:59 +0000
commita332d1c86984c380c1e8d94db12d28b9b71b167f (patch)
tree5bc25177cd8cfc383461871b15e631c701460308 /src/lib/evas/common/evas_draw_main.c
parent3604cc2f4f4ebda49d2f4a87cb4f0ff6d92e8f88 (diff)
efl/evas: remove mask of non-rectangle objects.
it was broken and mostly disabled, so now we do remove it in the hope who does that next time, does it properly. SVN revision: 80252
Diffstat (limited to 'src/lib/evas/common/evas_draw_main.c')
-rw-r--r--src/lib/evas/common/evas_draw_main.c49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/lib/evas/common/evas_draw_main.c b/src/lib/evas/common/evas_draw_main.c
index 28b54cd..bfed3e4 100644
--- a/src/lib/evas/common/evas_draw_main.c
+++ b/src/lib/evas/common/evas_draw_main.c
@@ -174,55 +174,6 @@ evas_common_draw_context_unset_multiplier(RGBA_Draw_Context *dc)
174 dc->mul.use = 0; 174 dc->mul.use = 0;
175} 175}
176 176
177EAPI void
178evas_common_draw_context_set_mask(RGBA_Draw_Context *dc, RGBA_Image *mask, int x, int y, int w, int h)
179{
180 dc->mask.mask = mask;
181 dc->mask.x = x;
182 dc->mask.y = y;
183 dc->mask.w = w;
184 dc->mask.h = h;
185
186#ifdef HAVE_PIXMAN
187 if (mask->pixman.im)
188 pixman_image_unref(mask->pixman.im);
189
190 if (mask->cache_entry.flags.alpha)
191 {
192 mask->pixman.im = pixman_image_create_bits(PIXMAN_a8r8g8b8, w, h,
193 (uint32_t *)mask->mask.mask,
194 w * 4);
195 }
196 else
197 {
198 mask->pixman.im = pixman_image_create_bits(PIXMAN_x8r8g8b8, w, h,
199 (uint32_t *)mask->mask.mask,
200 w * 4);
201 }
202#endif
203
204}
205
206EAPI void
207evas_common_draw_context_unset_mask(RGBA_Draw_Context *dc)
208{
209 dc->mask.mask = NULL;
210
211#ifdef HAVE_PIXMAN
212 RGBA_Image *mask;
213 mask = (RGBA_Image *)dc->mask.mask;
214
215 if (mask && mask->pixman.im)
216 {
217 pixman_image_unref(mask->pixman.im);
218 mask->pixman.im = NULL;
219 }
220#endif
221}
222
223
224
225
226 177
227EAPI void 178EAPI void
228evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h) 179evas_common_draw_context_add_cutout(RGBA_Draw_Context *dc, int x, int y, int w, int h)