diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-04-29 13:51:56 +0200 |
---|---|---|
committer | Niklas Haas <git@nand.wakku.to> | 2015-04-29 14:01:27 +0200 |
commit | daf4334697145f771c5085fb183e64dc65a967bd (patch) | |
tree | 8d172e12f970b83d19c7c6d7b58ee36c6386be81 /common/common.h | |
parent | 0b72f5e5ad6f9fca8849fcfb5ced8c03e21ce82a (diff) | |
download | mpv-daf4334697145f771c5085fb183e64dc65a967bd.tar.bz2 mpv-daf4334697145f771c5085fb183e64dc65a967bd.tar.xz |
x11: query ICC profile based on center of window
Right now, the default behavior is to pick the numerically lowest screen
ID that overlaps the window in any way - but this means that mpv will
decide to pick an ICC profile in a pretty arbitrary way even if the
window only overlaps another screen by a single pixel.
The new behavior is to query it based on the center of the window
instead.
Diffstat (limited to 'common/common.h')
-rw-r--r-- | common/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/common.h b/common/common.h index 2151d03cd2..cc7093a4fc 100644 --- a/common/common.h +++ b/common/common.h @@ -75,6 +75,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); int mp_snprintf_cat(char *str, size_t size, const char *format, ...) PRINTF_ATTRIBUTE(3, 4); |