Constify two matrix multiplication helpers
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 May 2016 03:44:04 +0000 (13:44 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 3 May 2016 03:44:04 +0000 (13:44 +1000)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/libinput-util.h

index 8f814cc7bdbc560a33048e70b68da70498edaf2b..82ab2b1e00514461f08552c1919a0b1e99aa17c8 100644 (file)
@@ -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;