devilhorns pushed a commit to branch master.
commit 5da4fce18a6438f14a94816cd50f07390f396c95
Author: Chris Michael <[email protected]>
Date: Mon May 20 18:18:09 2013 +0100
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 <[email protected]>
---
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
--
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may