Enlightenment CVS committal

Author  : andreas
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_object_polygon.c 


Log Message:
fixed polygon moving

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/canvas/evas_object_polygon.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -3 -r1.18 -r1.19
--- evas_object_polygon.c       16 Nov 2006 03:20:24 -0000      1.18
+++ evas_object_polygon.c       22 Jan 2007 23:38:39 -0000      1.19
@@ -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-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to