summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.m
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r--video/out/cocoa_common.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m
index 21e1246b1c..557e28e4f1 100644
--- a/video/out/cocoa_common.m
+++ b/video/out/cocoa_common.m
@@ -90,8 +90,6 @@ struct vo_cocoa_state {
uint32_t old_dwidth;
uint32_t old_dheight;
- NSData *icc_wnd_profile;
- NSData *icc_fs_profile;
id fs_icc_changed_ns_observer;
pthread_mutex_t lock;
@@ -421,7 +419,6 @@ static void vo_cocoa_update_screen_info(struct vo *vo, struct mp_rect *out_rc)
return;
vo_cocoa_update_screens_pointers(vo);
- vo_cocoa_update_screen_fps(vo);
if (out_rc) {
NSRect r = [s->current_screen frame];
@@ -584,6 +581,7 @@ static void cocoa_screen_reconfiguration_observer(
struct vo *vo = ctx;
MP_WARN(vo, "detected display mode change, updating screen info\n");
vo_cocoa_update_screen_info(vo, NULL);
+ vo_cocoa_update_screen_fps(vo);
}
}
@@ -614,6 +612,7 @@ int vo_cocoa_config_window(struct vo *vo)
run_on_main_thread(vo, ^{
struct mp_rect screenrc;
vo_cocoa_update_screen_info(vo, &screenrc);
+ vo_cocoa_update_screen_fps(vo);
struct vo_win_geometry geo;
vo_calc_window_geometry(vo, &screenrc, &geo);
@@ -953,6 +952,7 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg)
- (void)windowDidChangeScreen:(NSNotification *)notification
{
vo_cocoa_update_screen_info(self.vout, NULL);
+ vo_cocoa_update_screen_fps(self.vout);
}
- (void)didChangeWindowedScreenProfile:(NSScreen *)screen