Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/edje

Dir     : e17/libs/edje/src/lib


Modified Files:
        edje_load.c edje_util.c 


Log Message:


fix initial dragable values

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_load.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -3 -r1.51 -r1.52
--- edje_load.c 29 Oct 2004 17:56:12 -0000      1.51
+++ edje_load.c 20 Nov 2004 04:43:37 -0000      1.52
@@ -262,7 +262,7 @@
             if (_edje_block_break(ed)) break;
             if (rp->part->dragable.x < 0) rp->drag.val.x = 1.0;
             if (rp->part->dragable.y < 0) rp->drag.val.x = 1.0;
-            _edje_dragable_pos_set(ed, rp, 1.0, 1.0);
+            _edje_dragable_pos_set(ed, rp, rp->drag.val.x, rp->drag.val.y);
          }
        ed->dirty = 1;
        if ((evas_object_clipees_get(ed->clipper)) && 
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_util.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -3 -r1.45 -r1.46
--- edje_util.c 30 Oct 2004 11:08:17 -0000      1.45
+++ edje_util.c 20 Nov 2004 04:43:37 -0000      1.46
@@ -945,13 +945,13 @@
        return;
      }
    if (rp->drag.down.count > 0) return;
-   if(rp->part->dragable.confine_id != -1)
-   {
-    if (dx < 0.0) dx = 0.0;
-    else if (dx > 1.0) dx = 1.0;
-    if (dy < 0.0) dy = 0.0;
-    else if (dy > 1.0) dy = 1.0;
-   }
+   if (rp->part->dragable.confine_id != -1)
+     {
+       if (dx < 0.0) dx = 0.0;
+       else if (dx > 1.0) dx = 1.0;
+       if (dy < 0.0) dy = 0.0;
+       else if (dy > 1.0) dy = 1.0;
+     }
    if (rp->part->dragable.x < 0) dx = 1.0 - dx;
    if (rp->part->dragable.y < 0) dy = 1.0 - dy;
    if ((rp->drag.val.x == dx) && (rp->drag.val.y == dy)) return;




-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to