Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/lib
Modified Files:
edje_embryo.c
Log Message:
get relative mouse pos relative to the edje... and add a -fill opt to edje
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/lib/edje_embryo.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- edje_embryo.c 5 Jul 2004 04:12:23 -0000 1.19
+++ edje_embryo.c 8 Jul 2004 04:29:28 -0000 1.20
@@ -488,13 +488,15 @@
_edje_embryo_fn_get_mouse(Embryo_Program *ep, Embryo_Cell *params)
{
Edje *ed;
- int x=0, y=0;
+ Evas_Coord x = 0, y = 0;
CHKPARAM(2);
ed = embryo_program_data_get(ep);
- evas_pointer_output_xy_get(ed->evas, &x, &y);
- SETINT(x, params[1]);
- SETINT(y, params[2]);
+ evas_pointer_canvas_xy_get(ed->evas, &x, &y);
+ x -= ed->x;
+ y -= ed->y;
+ SETINT((int)x, params[1]);
+ SETINT((int)y, params[2]);
return 0;
}
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs