Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Baptiste Kempf
VLC
Commits
cd3d0c21
Commit
cd3d0c21
authored
Jun 09, 2004
by
gbazin
Browse files
* modules/video_output/directx/events.c: implemented VOUT_CLOSE.
parent
a8d4796d
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/video_output/directx/events.c
View file @
cd3d0c21
...
@@ -919,6 +919,8 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
...
@@ -919,6 +919,8 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
case
VOUT_CLOSE
:
ShowWindow
(
p_vout
->
p_sys
->
hwnd
,
SW_HIDE
);
case
VOUT_REPARENT
:
case
VOUT_REPARENT
:
/* Change window style, borders and title bar */
/* Change window style, borders and title bar */
vlc_mutex_lock
(
&
p_vout
->
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_vout
->
p_sys
->
lock
);
...
@@ -932,15 +934,12 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
...
@@ -932,15 +934,12 @@ static int Control( vout_thread_t *p_vout, int i_query, va_list args )
SetParent
(
p_vout
->
p_sys
->
hwnd
,
GetDesktopWindow
()
);
SetParent
(
p_vout
->
p_sys
->
hwnd
,
GetDesktopWindow
()
);
SetWindowLong
(
p_vout
->
p_sys
->
hwnd
,
GWL_STYLE
,
SetWindowLong
(
p_vout
->
p_sys
->
hwnd
,
GWL_STYLE
,
WS_CLIPCHILDREN
|
WS_OVERLAPPEDWINDOW
|
WS_CLIPCHILDREN
|
WS_OVERLAPPEDWINDOW
|
WS_SIZEBOX
|
WS_VISIBLE
);
WS_SIZEBOX
|
(
i_query
==
VOUT_CLOSE
?
0
:
WS_VISIBLE
)
);
SetWindowPos
(
p_vout
->
p_sys
->
hwnd
,
0
,
point
.
x
,
point
.
y
,
0
,
0
,
SetWindowPos
(
p_vout
->
p_sys
->
hwnd
,
0
,
point
.
x
,
point
.
y
,
0
,
0
,
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_FRAMECHANGED
);
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_FRAMECHANGED
);
return
vout_vaControlDefault
(
p_vout
,
i_query
,
args
);
return
vout_vaControlDefault
(
p_vout
,
i_query
,
args
);
case
VOUT_CLOSE
:
return
VLC_SUCCESS
;
case
VOUT_SET_STAY_ON_TOP
:
case
VOUT_SET_STAY_ON_TOP
:
if
(
p_vout
->
p_sys
->
hparent
)
if
(
p_vout
->
p_sys
->
hparent
)
return
vout_ControlWindow
(
p_vout
,
return
vout_ControlWindow
(
p_vout
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment