Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_util.c
Log Message:
atmos' patch! :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_util.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -3 -r1.28 -r1.29
--- edje_util.c 4 Nov 2003 06:15:19 -0000 1.28
+++ edje_util.c 5 Nov 2003 00:08:57 -0000 1.29
@@ -739,10 +739,13 @@
return;
}
if (rp->drag.down.count > 0) return;
- 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: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs