Commit 09ba0061 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

Direct3D: destroy the window if any when in desktop wall paper mode

(Manual cherry picked from commit f56d33ed1664db86aeff2580b66291080c467184)
Signed-off-by: default avatarThomas Guillem <thomas@gllm.fr>

Close #13647
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent e16703e2
......@@ -681,18 +681,19 @@ static int Win32VoutCreateWindow( event_thread_t *p_event )
#ifdef MODULE_NAME_IS_direct3d
if( !p_event->use_desktop )
{
#endif
{
/* If an external window was specified, we'll draw in it. */
p_event->parent_window = vout_display_NewWindow(vd, &p_event->wnd_cfg );
if( p_event->parent_window )
p_event->hparent = p_event->parent_window->handle.hwnd;
else
p_event->hparent = NULL;
#ifdef MODULE_NAME_IS_direct3d
}
#ifdef MODULE_NAME_IS_direct3d
else
{
vout_display_DeleteWindow(vd, NULL);
p_event->parent_window = NULL;
p_event->hparent = GetDesktopHandle(vd);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment