diff options
author | Akemi <der.richter@gmx.de> | 2017-01-31 16:45:15 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-02-02 16:31:28 +0100 |
commit | d11c03faeec257e1f38886e3eb79a977d41127cb (patch) | |
tree | 9eda9b96ae4b55f3235f64c8c6a6d0485915c69f /video | |
parent | 5f10a415d7547fe6c1a25fa5594491991cef7f5d (diff) | |
download | mpv-d11c03faeec257e1f38886e3eb79a977d41127cb.tar.bz2 mpv-d11c03faeec257e1f38886e3eb79a977d41127cb.tar.xz |
cocoa: fix color profile retrieval
when the color profile was changed it used the right NSScreen but with
the old colorSpace. this was optimised out by a previous commit because
of a wrong assumption. we need to update the screen so we can get the
new colorSpace. this adds a bit of redundancy since on screen change it
will update screen pointer twice.
Diffstat (limited to 'video')
-rw-r--r-- | video/out/cocoa_common.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 6eb3dac6a9..0420b0dda2 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -1008,6 +1008,7 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) - (void)didChangeWindowedScreenProfile:(NSNotification *)notification { + vo_cocoa_update_screen_info(self.vout); flag_events(self.vout, VO_EVENT_ICC_PROFILE_CHANGED); } |