[vlc-devel] commit: VOUT_WINDOW_SET_FULLSCREEN: control request for fullscreen mode ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Aug 11 19:38:19 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 11 20:02:49 2009 +0300| [066325d2f7f8693f171f045e45b50dc70dca988f] | committer: Rémi Denis-Courmont
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.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=066325d2f7f8693f171f045e45b50dc70dca988f
---
include/vlc_vout_window.h | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/include/vlc_vout_window.h b/include/vlc_vout_window.h
index ee54e31..b3db081 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 */
More information about the vlc-devel
mailing list