mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-29 05:30:07 +01:00
Constify two matrix multiplication helpers
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
df42e9aebc
commit
dc7570f047
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue