From d11c03faeec257e1f38886e3eb79a977d41127cb Mon Sep 17 00:00:00 2001 From: Akemi Date: Tue, 31 Jan 2017 16:45:15 +0100 Subject: 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. --- video/out/cocoa_common.m | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v1.2.3