]> git.sesse.net Git - vlc/commitdiff
VOUT_WINDOW_SET_FULLSCREEN: control request for fullscreen mode
authorRémi Denis-Courmont <remi@remlab.net>
Tue, 11 Aug 2009 17:02:49 +0000 (20:02 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 11 Aug 2009 17:37:13 +0000 (20:37 +0300)
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

index ee54e31772fa7569687cd2946a290a1a73404eee..b3db0818fc61522acb2e02bb28d4b5fe1f517d24 100644 (file)
@@ -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 */