comparison 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
comparison
equal deleted inserted replaced
19534:b0a6a97e2ba0 19535:69b134c4caea
307 /* updating the display once a 100.second is enough imo */ 307 /* updating the display once a 100.second is enough imo */
308 DWORD time = timeGetTime(); 308 DWORD time = timeGetTime();
309 if((time - oldtime) < 100) return; 309 if((time - oldtime) < 100) return;
310 oldtime=time; 310 oldtime=time;
311 311
312 /* suppress directx's fullscreen window when using the sub window */
313 if(sub_window && &video_driver_list[0] && strstr("directx", video_driver_list[0]))
314 {
315 HWND hWndFS = NULL; //handle to directx's fullscreen window
316 if(hWndFS == NULL)
317 {
318 hWndFS = FindWindow(NULL, "MPlayer Fullscreen");
319 if(hWndFS != NULL) DestroyWindow(hWndFS); //sub window handles fullscreen
320 }
321 }
322
312 for (i=0; i<gui->window_priv_count; i++) 323 for (i=0; i<gui->window_priv_count; i++)
313 { 324 {
314 if(gui->window_priv[i]->hwnd == hwnd) 325 if(gui->window_priv[i]->hwnd == hwnd)
315 priv=gui->window_priv[i]; 326 priv=gui->window_priv[i];
316 }// Sherpya 327 }// Sherpya