forked from enlightenment/efl
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:
parent
88698189ff
commit
5da4fce18a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue