summaryrefslogtreecommitdiffstats
path: root/Gui/win32/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/win32/gui.c')
-rw-r--r--Gui/win32/gui.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/Gui/win32/gui.c b/Gui/win32/gui.c
index 599dffa8bf..9a6e6e862a 100644
--- a/Gui/win32/gui.c
+++ b/Gui/win32/gui.c
@@ -309,6 +309,17 @@ static void updatedisplay(gui_t *gui, HWND hwnd)
if((time - oldtime) < 100) return;
oldtime=time;
+ /* suppress directx's fullscreen window when using the sub window */
+ if(sub_window && &video_driver_list[0] && strstr("directx", video_driver_list[0]))
+ {
+ HWND hWndFS = NULL; //handle to directx's fullscreen window
+ if(hWndFS == NULL)
+ {
+ hWndFS = FindWindow(NULL, "MPlayer Fullscreen");
+ if(hWndFS != NULL) DestroyWindow(hWndFS); //sub window handles fullscreen
+ }
+ }
+
for (i=0; i<gui->window_priv_count; i++)
{
if(gui->window_priv[i]->hwnd == hwnd)