From dc7570f047d5e9be8cbec65672b4a2512c3811b3 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 3 May 2016 13:44:04 +1000 Subject: [PATCH] Constify two matrix multiplication helpers Signed-off-by: Peter Hutterer --- src/libinput-util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libinput-util.h b/src/libinput-util.h index 8f814cc7..82ab2b1e 100644 --- a/src/libinput-util.h +++ b/src/libinput-util.h @@ -228,7 +228,7 @@ matrix_init_translate(struct matrix *m, float x, float y) } static inline int -matrix_is_identity(struct matrix *m) +matrix_is_identity(const struct matrix *m) { return (m->val[0][0] == 1 && m->val[0][1] == 0 && @@ -263,7 +263,7 @@ matrix_mult(struct matrix *dest, } static inline void -matrix_mult_vec(struct matrix *m, int *x, int *y) +matrix_mult_vec(const struct matrix *m, int *x, int *y) { int tx, ty;