summaryrefslogtreecommitdiffstats
path: root/libvo/cocoa_common.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2011-12-04 21:53:43 +0100
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2011-12-06 23:11:50 +0100
commitb2a41e20be6c1831543e72987ce7d285655fc311 (patch)
treeccc6c6ba44ab1491191413ae3358bdba1007a780 /libvo/cocoa_common.h
parentbd8ba89cca217cc78df31a357f77220a618a9b9a (diff)
downloadmpv-b2a41e20be6c1831543e72987ce7d285655fc311.tar.bz2
mpv-b2a41e20be6c1831543e72987ce7d285655fc311.tar.xz
vo_gl: cocoa: point swapinterval to cocoa_common function
Currently there is no way to set the swap interval with a function that has a signature compatible with other platforms' gl extensions. Make a wrapper function around the gui toolkit method of setting the swap interval property, and point gl->SwapInterval to it.
Diffstat (limited to 'libvo/cocoa_common.h')
-rw-r--r--libvo/cocoa_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libvo/cocoa_common.h b/libvo/cocoa_common.h
index a69f61916c..4fbbb32dd9 100644
--- a/libvo/cocoa_common.h
+++ b/libvo/cocoa_common.h
@@ -16,4 +16,7 @@ void vo_cocoa_swap_buffers(void);
int vo_cocoa_check_events(struct vo *vo);
void vo_cocoa_fullscreen(struct vo *vo);
+// returns an int to conform to the gl extensions from other platforms
+int vo_cocoa_swap_interval(int enabled);
+
#endif /* MPLAYER_COCOA_COMMON_H */