summaryrefslogtreecommitdiffstats
path: root/core/mp_common.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-12-28 15:44:51 +0100
committerwm4 <wm4@nowhere>2013-01-13 20:04:14 +0100
commit23f731839a39583321e2e03ff54715e9d5cea577 (patch)
tree4e5f6965ada1ed22b8bff5256992bbe8e7eb296b /core/mp_common.h
parentfb23c3a8ee468a4eaa974440147b032a568f7d7b (diff)
downloadmpv-23f731839a39583321e2e03ff54715e9d5cea577.tar.bz2
mpv-23f731839a39583321e2e03ff54715e9d5cea577.tar.xz
mp_common: add some rectangle utility functions
Diffstat (limited to 'core/mp_common.h')
-rw-r--r--core/mp_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/mp_common.h b/core/mp_common.h
index 0ee14ab484..6736a08a18 100644
--- a/core/mp_common.h
+++ b/core/mp_common.h
@@ -43,4 +43,7 @@ struct mp_rect {
int x1, y1;
};
+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);
+
#endif /* MPLAYER_MPCOMMON_H */