summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2016-05-03 13:44:04 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2016-05-03 13:44:04 +1000
commitdc7570f047d5e9be8cbec65672b4a2512c3811b3 (patch)
treec9937222c7c37128ce81bfa3209f39920c4ff797 /src
parentdf42e9aebc4ae53fa9306d7fbbc316991c1aa44c (diff)
Constify two matrix multiplication helpers
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/libinput-util.h4
1 files 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;