summaryrefslogtreecommitdiffstats
path: root/common/common.h
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-08-25 18:56:41 +0200
committerDudemanguy <random342@airmail.cc>2023-08-31 17:37:42 +0000
commit8920ee59449192005a78f9b1af02b7412d955b9d (patch)
treec88d684fce07d333299ff55c3ce61f587f26160f /common/common.h
parent3ab5401b38d1ff1c1bb85f108f26d508cc334c82 (diff)
downloadmpv-8920ee59449192005a78f9b1af02b7412d955b9d.tar.bz2
mpv-8920ee59449192005a78f9b1af02b7412d955b9d.tar.xz
common: constify mp_rect_equals
Diffstat (limited to 'common/common.h')
-rw-r--r--common/common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/common.h b/common/common.h
index 206062e8ed..93a8ded918 100644
--- a/common/common.h
+++ b/common/common.h
@@ -106,7 +106,7 @@ struct mp_rect {
void mp_rect_union(struct mp_rect *rc, const struct mp_rect *src);
bool mp_rect_intersection(struct mp_rect *rc, const struct mp_rect *rc2);
bool mp_rect_contains(struct mp_rect *rc, int x, int y);
-bool mp_rect_equals(struct mp_rect *rc1, struct mp_rect *rc2);
+bool mp_rect_equals(const struct mp_rect *rc1, const struct mp_rect *rc2);
int mp_rect_subtract(const struct mp_rect *rc1, const struct mp_rect *rc2,
struct mp_rect res_array[4]);