With antognolli's framespace changes, we no longer need to subtract

framespace from the output/canvas to get proper x/y coordinates.

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2013-05-20 18:18:09 +01:00
parent 88698189ff
commit 5da4fce18a
1 changed files with 4 additions and 4 deletions

View File

@ -728,8 +728,8 @@ _canvas_pointer_output_xy_get(Eo *eo_e EINA_UNUSED, void *_pd, va_list *list)
int *x = va_arg(*list, int *);
int *y = va_arg(*list, int *);
const Evas_Public_Data *e = _pd;
if (x) *x = e->pointer.x - e->framespace.x;
if (y) *y = e->pointer.y - e->framespace.y;
if (x) *x = e->pointer.x;
if (y) *y = e->pointer.y;
}
EAPI void
@ -750,8 +750,8 @@ _canvas_pointer_canvas_xy_get(Eo *eo_e EINA_UNUSED, void *_pd, va_list *list)
Evas_Coord *y = va_arg(*list, Evas_Coord *);
const Evas_Public_Data *e = _pd;
if (x) *x = e->pointer.x - e->framespace.x;
if (y) *y = e->pointer.y - e->framespace.y;
if (x) *x = e->pointer.x;
if (y) *y = e->pointer.y;
}
EAPI int