From 1fb331ca738e92e5815fe8b7ce503c187f52fecc Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Mon, 14 Mar 2011 15:17:01 +0100 Subject: Convert to utouch-frame mapping Remove the grail-internal mapping code and rely directly on utouch-frame instead. Passes the unit test designed for this change. Signed-off-by: Henrik Rydberg --- src/grail-inserter.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/grail-inserter.h') diff --git a/src/grail-inserter.h b/src/grail-inserter.h index 55e94a3..f8451d6 100644 --- a/src/grail-inserter.h +++ b/src/grail-inserter.h @@ -58,20 +58,8 @@ struct gesture_inserter { int gestureid; int grab_active; int grab_client; - float scale_x, scale_y, scale_r; - float trans_x, trans_y; }; -static inline float gin_prop_x(const struct gesture_inserter *gin, float x) -{ - return gin->scale_x * x + gin->trans_x; -} - -static inline float gin_prop_y(const struct gesture_inserter *gin, float y) -{ - return gin->scale_y * y + gin->trans_y; -} - int gin_add_contact_props(const struct gesture_inserter *gin, grail_prop_t *prop, const struct utouch_frame *frame); -- cgit v1.2.3