summaryrefslogtreecommitdiff
path: root/legacy/evas/src/lib/engines/common/evas_draw_main.c
diff options
context:
space:
mode:
authordoursse <doursse>2008-07-10 22:53:33 +0000
committerdoursse <doursse@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>2008-07-10 22:53:33 +0000
commitfb9313c024a3b3bdff8de4f5cb66d68f2060d84d (patch)
treed26ce69cd6015df529453dc1cea0621d5e9fd4fa /legacy/evas/src/lib/engines/common/evas_draw_main.c
parent5b74833dfb730f084221fffe35c888a591713bec (diff)
* move convert function declarations to their own header file
* add vim header in the files I modified * fix minor warnings i think i don't break compilation on that commit :) SVN revision: 35058
Diffstat (limited to '')
-rw-r--r--legacy/evas/src/lib/engines/common/evas_draw_main.c11
1 files changed, 8 insertions, 3 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 f6404d0305..3c2962b66c 100644
--- a/legacy/evas/src/lib/engines/common/evas_draw_main.c
+++ b/legacy/evas/src/lib/engines/common/evas_draw_main.c
@@ -1,4 +1,9 @@
1/*
2 * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
3 */
4
1#include "evas_common.h" 5#include "evas_common.h"
6#include "evas_convert_main.h"
2 7
3EAPI Cutout_Rects* 8EAPI Cutout_Rects*
4evas_common_draw_context_cutouts_new(void) 9evas_common_draw_context_cutouts_new(void)
@@ -37,7 +42,7 @@ evas_common_draw_context_cutouts_add(Cutout_Rects* rects,
37 rect->w = w; 42 rect->w = w;
38 rect->h = h; 43 rect->h = h;
39 rects->active++; 44 rects->active++;
40 45
41 return rect; 46 return rect;
42} 47}
43 48
@@ -48,9 +53,9 @@ evas_common_draw_context_cutouts_del(Cutout_Rects* rects,
48 if ((index >= 0) && (index < rects->active)) 53 if ((index >= 0) && (index < rects->active))
49 { 54 {
50 Cutout_Rect* rect; 55 Cutout_Rect* rect;
51 56
52 rect = rects->rects + index; 57 rect = rects->rects + index;
53 memmove(rect, rect + 1, 58 memmove(rect, rect + 1,
54 sizeof(Cutout_Rect) * (rects->active - index - 1)); 59 sizeof(Cutout_Rect) * (rects->active - index - 1));
55 rects->active--; 60 rects->active--;
56 } 61 }