Hello,
attached is a patch to fix the polygon moving in evas. Thanks rephorm.
regards
Andreas
? evas_polygon.patch
? src/lib/canvas/.evas_object_line.c.swp
Index: src/lib/canvas/evas_object_polygon.c
===================================================================
RCS file: /var/cvs/e/e17/libs/evas/src/lib/canvas/evas_object_polygon.c,v
retrieving revision 1.18
diff -u -u -r1.18 evas_object_polygon.c
--- src/lib/canvas/evas_object_polygon.c 16 Nov 2006 03:20:24 -0000 1.18
+++ src/lib/canvas/evas_object_polygon.c 21 Jan 2007 02:40:47 -0000
@@ -294,15 +294,17 @@
for (l = o->points; l; l = l->next)
{
Evas_Polygon_Point *p;
-//// int px, py;
+ //int px, py;
- p = l->data;
-//// px = evas_coord_world_x_to_screen(obj->layer->evas, p->x);
-//// py = evas_coord_world_y_to_screen(obj->layer->evas, p->y);
+ p = l->data;
+
+ //px = evas_coord_world_x_to_screen(obj->layer->evas, p->x);
+ //py = evas_coord_world_y_to_screen(obj->layer->evas, p->y);
o->engine_data = obj->layer->evas->engine.func->polygon_point_add(obj->layer->evas->engine.data.output,
obj->layer->evas->engine.data.context,
o->engine_data,
- p->x + x, p->y + y);
+ p->x + obj->cur.geometry.x + x,
+ p->y + obj->cur.geometry.y + y);
}
if (o->engine_data)
obj->layer->evas->engine.func->polygon_draw(output,
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel