mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 04:11:03 +00:00
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.
This commit is contained in:
parent
5f10a415d7
commit
d11c03faee
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user