mirror of
https://github.com/videolan/vlc.git
synced 2025-01-19 14:18:11 +08:00
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.
This commit is contained in:
parent
1b7f5b823c
commit
066325d2f7
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user