summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa_common.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2013-05-29 00:14:34 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2013-05-30 23:01:12 +0200
commit0057aa476999138c4a5496a4af95a639c01df4d5 (patch)
treefac1ca5ce0fc5687c1787d139abe02503dd967f1 /video/out/cocoa_common.h
parent3396e0565b39c5168777b78cc26ed3b985a81071 (diff)
downloadmpv-0057aa476999138c4a5496a4af95a639c01df4d5.tar.bz2
mpv-0057aa476999138c4a5496a4af95a639c01df4d5.tar.xz
cocoa_common: use cocoa APIs to go fullscreen
This removes a bit of ugly code and bookeeping which is never bad. `drawRect` needs to guard against different window instances since in fullscreen the view is wrapped in a fullscreen window provided by the toolkit (a instance of NSFullScreenWindow to be precise). The event handling was moved to the view so that it can still get all the events when in the fullscreen window. Ideally these should be moved to some NSResponder subclass within macosx_application and made available even when no window is present. I refrained from this because "small steps".
Diffstat (limited to 'video/out/cocoa_common.h')
-rw-r--r--video/out/cocoa_common.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/cocoa_common.h b/video/out/cocoa_common.h
index b352ce160b..f6af87f3b7 100644
--- a/video/out/cocoa_common.h
+++ b/video/out/cocoa_common.h
@@ -29,8 +29,6 @@ void *vo_cocoa_glgetaddr(const char *s);
int vo_cocoa_init(struct vo *vo);
void vo_cocoa_uninit(struct vo *vo);
-void vo_cocoa_update_xinerama_info(struct vo *vo);
-
int vo_cocoa_change_attributes(struct vo *vo);
int vo_cocoa_config_window(struct vo *vo, uint32_t d_width,
uint32_t d_height, uint32_t flags,