Enlightenment CVS committal Author : handyande Project : misc Module : engage
Dir : misc/engage/src/module Modified Files: e_mod_main.c Log Message: fix calculations a little =================================================================== RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.c,v retrieving revision 1.85 retrieving revision 1.86 diff -u -3 -r1.85 -r1.86 --- e_mod_main.c 10 Dec 2005 15:37:52 -0000 1.85 +++ e_mod_main.c 10 Dec 2005 16:25:02 -0000 1.86 @@ -1643,6 +1643,16 @@ Engage_Icon *prev; E_Gadman_Edge edge; + evas_object_geometry_get(eb->event_object, &x, &y, &w, &h); + if (mx < x) + mx = x; + if (mx > x + w) + mx = x + w; + if (my < y) + my = y; + if (my > y + h) + my = y + y; + evas_object_geometry_get(eb->box_object, &x, &y, &w, &h); if (w > 0) relx = (double)(mx - x) / (double)w; else relx = 0.0; ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs