Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_calc.c
Log Message:
fix up dragables for panners panning element bigger than confine
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_calc.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -3 -r1.54 -r1.55
--- edje_calc.c 2 Nov 2004 00:05:27 -0000 1.54
+++ edje_calc.c 20 Nov 2004 05:05:28 -0000 1.55
@@ -181,12 +181,14 @@
else if (ep->part->dragable.y != 0) ret = 2;
dx = ep->x - ep->confine_to->x;
- dw = MAX(ep->confine_to->w - ep->w, 1);
- dx /= dw;
+ dw = ep->confine_to->w - ep->w;
+ if (dw != 0.0) dx /= dw;
+ else dx = 0.0;
dy = ep->y - ep->confine_to->y;
- dh = MAX(ep->confine_to->h - ep->h, 1);
- dy /= dh;
+ dh = ep->confine_to->h - ep->h;
+ if (dh != 0) dy /= dh;
+ else dy = 0.0;
if (x) *x = dx;
if (y) *y = dy;
-------------------------------------------------------
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