From 066325d2f7f8693f171f045e45b50dc70dca988f Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 11 Aug 2009 20:02:49 +0300 Subject: [PATCH] VOUT_WINDOW_SET_FULLSCREEN: control request for fullscreen mode There is a slight ambiguity as to what VOUT_WINDOW_SET_SIZE should do when in full-screen mode though. --- include/vlc_vout_window.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h index ee54e31772..b3db0818fc 100644 --- a/include/vlc_vout_window.h +++ b/include/vlc_vout_window.h @@ -50,7 +50,8 @@ enum { */ enum { VOUT_WINDOW_SET_ON_TOP, /* int b_on_top */ - VOUT_WINDOW_SET_SIZE, /* int i_width, int i_height */ + VOUT_WINDOW_SET_SIZE, /* unsigned i_width, unsigned i_height */ + VOUT_WINDOW_SET_FULLSCREEN, /* int b_fullscreen */ }; typedef struct { @@ -141,10 +142,19 @@ static inline int vout_window_SetOnTop(vout_window_t *window, bool is_on_top) /** * Configure the windows display size. */ -static inline int vout_window_SetSize(vout_window_t *window, int width, int height) +static inline int vout_window_SetSize(vout_window_t *window, + unsigned width, unsigned height) { return vout_window_Control(window, VOUT_WINDOW_SET_SIZE, width, height); } +/** + * Configure the windows fullscreen mode. + */ +static inline int vout_window_SetFullScreen(vout_window_t *window, bool full) +{ + return vout_window_Control(window, VOUT_WINDOW_SET_FULLSCREEN, full); +} + #endif /* VLC_VOUT_WINDOW_H */ -- 2.39.2