From 29eb764fe0ae67bebfa930f88a9d7088f30561dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 12 May 2015 22:31:22 +0200 Subject: cocoa: make live-resizing as fast as before Interrupt video timing. This means the Cocoa event loop does not have to up to 2 video frame durations until redrawing the frame finally has finished. We abuse the VO event flags for this. Eventually this should use wait_vo() or so in the video timing wait function, but for now the interaction this would require with the code of other VOs/backends would cause too much of a mess. --- video/out/vo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/vo.h') diff --git a/video/out/vo.h b/video/out/vo.h index 26df7079d8..c2aee9aedd 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -40,6 +40,8 @@ #define VO_EVENT_WIN_STATE 8 // The ambient light conditions changed and need to be reloaded #define VO_EVENT_AMBIENT_LIGHTING_CHANGED 16 +// Special mechanism for making resizing with Cocoa react faster +#define VO_EVENT_LIVE_RESIZING 32 // Set of events the player core may be interested in. #define VO_EVENTS_USER (VO_EVENT_RESIZE | VO_EVENT_WIN_STATE) -- cgit v1.2.3