Mercurial > mplayer.hg
diff Gui/win32/gui.c @ 19535:69b134c4caea
Further fullscreen switching improvements. Fixes sub window position bug when exiting a file from fullscreen. Fixes sub window position when switching between windows and fullscreen modes.
author | vayne |
---|---|
date | Sat, 26 Aug 2006 16:52:51 +0000 |
parents | df307a050359 |
children | e9ea7852e803 |
line wrap: on
line diff
--- a/Gui/win32/gui.c Sat Aug 26 09:53:06 2006 +0000 +++ b/Gui/win32/gui.c Sat Aug 26 16:52:51 2006 +0000 @@ -309,6 +309,17 @@ 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)