From 5da4fce18a6438f14a94816cd50f07390f396c95 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 20 May 2013 18:18:09 +0100 Subject: [PATCH] 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 --- src/lib/evas/canvas/evas_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/evas/canvas/evas_main.c b/src/lib/evas/canvas/evas_main.c index 4cedf77..a140c0a 100644 --- a/src/lib/evas/canvas/evas_main.c +++ b/src/lib/evas/canvas/evas_main.c @@ -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 -- 2.7.4