Commit f56d33ed authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

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

parent 75831244
...@@ -683,8 +683,8 @@ static int Win32VoutCreateWindow( event_thread_t *p_event ) ...@@ -683,8 +683,8 @@ static int Win32VoutCreateWindow( event_thread_t *p_event )
#ifdef MODULE_NAME_IS_direct3d #ifdef MODULE_NAME_IS_direct3d
if( !p_event->use_desktop ) if( !p_event->use_desktop )
{
#endif #endif
{
vout_window_cfg_t wnd_cfg = { vout_window_cfg_t wnd_cfg = {
.type = VOUT_WINDOW_TYPE_HWND, .type = VOUT_WINDOW_TYPE_HWND,
.width = p_event->width, .width = p_event->width,
...@@ -697,10 +697,11 @@ static int Win32VoutCreateWindow( event_thread_t *p_event ) ...@@ -697,10 +697,11 @@ static int Win32VoutCreateWindow( event_thread_t *p_event )
p_event->hparent = p_event->parent_window->handle.hwnd; p_event->hparent = p_event->parent_window->handle.hwnd;
else else
p_event->hparent = NULL; p_event->hparent = NULL;
#ifdef MODULE_NAME_IS_direct3d
} }
#ifdef MODULE_NAME_IS_direct3d
else else
{ {
vout_display_DeleteWindow(vd, NULL);
p_event->parent_window = NULL; p_event->parent_window = NULL;
p_event->hparent = GetDesktopHandle(vd); 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