aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/evas/canvas/evas_map.c
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2015-01-23 22:50:04 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-01-23 22:52:25 +0900
commitd85d9672b58bdc0df93fa3fb7a935ce919e7dbfa (patch)
tree7636a194326e28485b6702838bf20ace2ed22ecc /src/lib/evas/canvas/evas_map.c
parentEvas masking: And another case of bad mask rendering (diff)
downloadefl-d85d9672b58bdc0df93fa3fb7a935ce919e7dbfa.tar.gz
evas/map: make an internal function to static.
no need this function set external.
Diffstat (limited to 'src/lib/evas/canvas/evas_map.c')
-rw-r--r--src/lib/evas/canvas/evas_map.c72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/lib/evas/canvas/evas_map.c b/src/lib/evas/canvas/evas_map.c
index f0a18ac5f7..453caba615 100644
--- a/src/lib/evas/canvas/evas_map.c
+++ b/src/lib/evas/canvas/evas_map.c
@@ -108,6 +108,42 @@ _evas_map_calc_map_geometry(Evas_Object *eo_obj)
if (ch) _evas_map_calc_geom_change(eo_obj);
}
+static void
+evas_object_map_move_sync(Evas_Object *eo_obj)
+{
+ Evas_Object_Protected_Data *obj;
+ Evas_Map *m;
+ Evas_Map_Point *p;
+ Evas_Coord diff_x, diff_y;
+ int i, count;
+
+ obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
+ if (!obj) return;
+
+ if ((!obj->map->cur.map->move_sync.enabled) ||
+ ((obj->map->cur.map->move_sync.diff_x == 0) &&
+ (obj->map->cur.map->move_sync.diff_y == 0)))
+ return;
+
+ m = obj->map->cur.map;
+ p = m->points;
+ count = m->count;
+ diff_x = m->move_sync.diff_x;
+ diff_y = m->move_sync.diff_y;
+
+ for (i = 0; i < count; i++, p++)
+ {
+ p->px += diff_x;
+ p->py += diff_y;
+ p->x += diff_x;
+ p->y += diff_y;
+ }
+ m->move_sync.diff_x = 0;
+ m->move_sync.diff_y = 0;
+
+ _evas_map_calc_map_geometry(eo_obj);
+}
+
static inline Evas_Map *
_evas_map_new(int count)
{
@@ -1321,39 +1357,3 @@ evas_map_object_move_diff_set(Evas_Map *m,
m->move_sync.diff_x += diff_x;
m->move_sync.diff_y += diff_y;
}
-
-void
-evas_object_map_move_sync(Evas_Object *eo_obj)
-{
- Evas_Object_Protected_Data *obj;
- Evas_Map *m;
- Evas_Map_Point *p;
- Evas_Coord diff_x, diff_y;
- int i, count;
-
- obj = eo_data_scope_get(eo_obj, EVAS_OBJECT_CLASS);
- if (!obj) return;
-
- if ((!obj->map->cur.map->move_sync.enabled) ||
- ((obj->map->cur.map->move_sync.diff_x == 0) &&
- (obj->map->cur.map->move_sync.diff_y == 0)))
- return;
-
- m = obj->map->cur.map;
- p = m->points;
- count = m->count;
- diff_x = m->move_sync.diff_x;
- diff_y = m->move_sync.diff_y;
-
- for (i = 0; i < count; i++, p++)
- {
- p->px += diff_x;
- p->py += diff_y;
- p->x += diff_x;
- p->y += diff_y;
- }
- m->move_sync.diff_x = 0;
- m->move_sync.diff_y = 0;
-
- _evas_map_calc_map_geometry(eo_obj);
-}