comparison Gui/win32/interface.c @ 18947:06ab2099c10e

OpenGL outputs actually support WinID, not to mention that showing the option but just ignoring the setting is a very ugly and confusing way to handle it.
author reimar
date Sat, 08 Jul 2006 14:05:47 +0000
parents d450ec82ae57
children b83cefcd7e41
comparison
equal deleted inserted replaced
18946:35754d685781 18947:06ab2099c10e
688 { 688 {
689 if(!guiIntfStruct.sh_video) break; 689 if(!guiIntfStruct.sh_video) break;
690 video_out->control(VOCTRL_FULLSCREEN, 0); 690 video_out->control(VOCTRL_FULLSCREEN, 0);
691 691
692 /* no WinID, keep the sub window hidden */ 692 /* no WinID, keep the sub window hidden */
693 if((video_driver_list && !strstr(video_driver_list[0], "directx")) || !sub_window) 693 if(!sub_window)
694 break; 694 break;
695 695
696 if(vo_fs) 696 if(vo_fs)
697 { 697 {
698 WinID = -1; 698 WinID = -1;
902 { 902 {
903 int x,y; 903 int x,y;
904 RECT rd; 904 RECT rd;
905 WINDOWPOS wp; 905 WINDOWPOS wp;
906 906
907 /* it's not the best way to check if selected driver is directx, 907 if(!sub_window)
908 if no driver is specified video_driver_list is null.
909 Right now I don't have a functional way to do this
910 - Sherpya */
911 if((video_driver_list && !strstr(video_driver_list[0], "directx")) || !sub_window)
912 { 908 {
913 WinID = -1; // so far only directx supports WinID in windows 909 WinID = -1; // so far only directx supports WinID in windows
914 910
915 if(IsWindowVisible(mygui->subwindow) && guiIntfStruct.sh_video && guiIntfStruct.Playing) 911 if(IsWindowVisible(mygui->subwindow) && guiIntfStruct.sh_video && guiIntfStruct.Playing)
916 { 912 {