mpv/video/out/cocoa
Akemi 47d9fbd133 cocoa: fix display refresh rate retrieval on multi monitor setups
1. this basically reverts commit de4c74e5a4.
even with CVDisplayLinkCreateWithActiveCGDisplays and
CVDisplayLinkSetCurrentCGDisplayFromOpenGLContext we still have to
explicitly set the current display ID, otherwise it will just always
choose the display with the lowest refresh rate. another weird thing is,
we still have to set the display ID another time with
CVDisplayLinkSetCurrentCGDisplay after the link was started. otherwise
the display period is 0 and the fallback will be used.
if we ever use the callback method for something useful it's probably
better to use CVDisplayLinkCreateWithActiveCGDisplays since we will need
to keep the display link around instead of releasing it at the end.
in that case we have to call CVDisplayLinkSetCurrentCGDisplay two times,
once before and once after LinkStart.
2. add windowDidChangeScreen delegate to update the display refresh rate
when mpv is moved to a different screen.
2016-06-18 19:15:36 +02:00
..
events_view.h cocoa: update mouse coordinates when window is initialized. 2015-03-07 19:31:52 +01:00
events_view.m os x: handle multiple dropped files on the window 2016-04-30 18:58:06 +02:00
mpvadapter.h cocoa: fix autohide in fullscreen 2015-03-08 15:19:17 +01:00
video_view.h
video_view.m
window.h
window.m cocoa: fix display refresh rate retrieval on multi monitor setups 2016-06-18 19:15:36 +02:00