summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2010-02-25 15:10:05 +0000
committerCedric BAIL <cedric.bail@free.fr>2010-02-25 15:10:05 +0000
commit4d945f2c6aa59a443531e5fd0e55840a0499ad06 (patch)
tree15bc0a78547a27aa047d87fa9814bf7364a47f5e /legacy/evas/src/lib/engines/common/evas_draw_main.c
parent02d8dc445f022cd5b124e10e938828003bcadc51 (diff)
* evas: Remove duplicated code.
SVN revision: 46466
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c22
1 files changed, 1 insertions, 21 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 2fbce2da6e..581e3971d1 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -4,6 +4,7 @@
4 4
5#include "evas_common.h" 5#include "evas_common.h"
6#include "evas_convert_main.h" 6#include "evas_convert_main.h"
7#include "evas_private.h"
7 8
8EAPI Cutout_Rects* 9EAPI Cutout_Rects*
9evas_common_draw_context_cutouts_new(void) 10evas_common_draw_context_cutouts_new(void)
@@ -24,27 +25,6 @@ evas_common_draw_context_cutouts_free(Cutout_Rects* rects)
24 rects->active = 0; 25 rects->active = 0;
25} 26}
26 27
27static Cutout_Rect*
28evas_common_draw_context_cutouts_add(Cutout_Rects* rects,
29 int x, int y, int w, int h)
30{
31 Cutout_Rect* rect;
32
33 rects->active++;
34 if (rects->max < rects->active)
35 {
36 rects->max += 1024;
37 rects->rects = realloc(rects->rects, sizeof(Cutout_Rect) * rects->max);
38 }
39 rect = rects->rects + rects->active - 1;
40 rect->x = x;
41 rect->y = y;
42 rect->w = w;
43 rect->h = h;
44
45 return rect;
46}
47
48EAPI void 28EAPI void
49evas_common_draw_context_cutouts_del(Cutout_Rects* rects, 29evas_common_draw_context_cutouts_del(Cutout_Rects* rects,
50 int index) 30 int index)