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
Steve Lhomme
VLC
Commits
f3194f74
Commit
f3194f74
authored
Sep 25, 2004
by
gbazin
Browse files
* modules/video_output/directx/*: fix for spurious taskbar item after switching to fullscreen.
parent
a3f05150
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/video_output/directx/directx.c
View file @
f3194f74
...
...
@@ -599,6 +599,14 @@ static int Manage( vout_thread_t *p_vout )
SetWindowPos
(
p_vout
->
p_sys
->
hwnd
,
0
,
0
,
0
,
0
,
0
,
SWP_NOMOVE
|
SWP_NOSIZE
|
SWP_NOZORDER
|
SWP_FRAMECHANGED
);
if
(
p_vout
->
p_sys
->
hparent
)
{
ShowWindow
(
p_vout
->
p_sys
->
hwnd
,
SW_HIDE
);
SetWindowLong
(
p_vout
->
p_sys
->
hwnd
,
GWL_EXSTYLE
,
p_vout
->
b_fullscreen
?
0
:
WS_EX_TOOLWINDOW
);
ShowWindow
(
p_vout
->
p_sys
->
hwnd
,
SW_SHOW
);
}
/* Update the object variable and trigger callback */
val
.
b_bool
=
p_vout
->
b_fullscreen
;
var_Set
(
p_vout
,
"fullscreen"
,
val
);
...
...
modules/video_output/directx/events.c
View file @
f3194f74
...
...
@@ -361,7 +361,7 @@ static int DirectXCreateWindow( vout_thread_t *p_vout )
WNDCLASSEX
wc
;
/* window class components */
HICON
vlc_icon
=
NULL
;
char
vlc_path
[
MAX_PATH
+
1
];
int
i_style
;
int
i_style
,
i_stylex
;
msg_Dbg
(
p_vout
,
"DirectXCreateWindow"
);
...
...
@@ -440,14 +440,18 @@ static int DirectXCreateWindow( vout_thread_t *p_vout )
rect_window
.
bottom
=
rect_window
.
top
+
p_vout
->
p_sys
->
i_window_height
;
AdjustWindowRect
(
&
rect_window
,
WS_OVERLAPPEDWINDOW
|
WS_SIZEBOX
,
0
);
i_style
=
WS_OVERLAPPEDWINDOW
|
WS_SIZEBOX
|
WS_VISIBLE
|
WS_CLIPCHILDREN
;
i_stylex
=
0
;
if
(
p_vout
->
p_sys
->
hparent
)
{
i_style
=
WS_VISIBLE
|
WS_CLIPCHILDREN
|
WS_CHILD
;
else
i_style
=
WS_OVERLAPPEDWINDOW
|
WS_SIZEBOX
|
WS_VISIBLE
|
WS_CLIPCHILDREN
;
i_stylex
=
WS_EX_TOOLWINDOW
;
}
/* Create the window */
p_vout
->
p_sys
->
hwnd
=
CreateWindowEx
(
WS_EX_NOPARENTNOTIFY
,
CreateWindowEx
(
WS_EX_NOPARENTNOTIFY
|
i_stylex
,
"VLC DirectX"
,
/* name of window class */
VOUT_TITLE
" (DirectX Output)"
,
/* window title bar text */
i_style
,
/* window style */
...
...
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