summaryrefslogtreecommitdiffstats
path: root/Gui/win32/interface.c
diff options
context:
space:
mode:
Diffstat (limited to 'Gui/win32/interface.c')
-rw-r--r--Gui/win32/interface.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/Gui/win32/interface.c b/Gui/win32/interface.c
index 99c4453fdf..02b944301a 100644
--- a/Gui/win32/interface.c
+++ b/Gui/win32/interface.c
@@ -690,7 +690,7 @@ int guiGetEvent(int type, char *arg)
video_out->control(VOCTRL_FULLSCREEN, 0);
/* no WinID, keep the sub window hidden */
- if((video_driver_list && !strstr(video_driver_list[0], "directx")) || !sub_window)
+ if(!sub_window)
break;
if(vo_fs)
@@ -904,11 +904,7 @@ static int update_subwindow(void)
RECT rd;
WINDOWPOS wp;
- /* it's not the best way to check if selected driver is directx,
- if no driver is specified video_driver_list is null.
- Right now I don't have a functional way to do this
- - Sherpya */
- if((video_driver_list && !strstr(video_driver_list[0], "directx")) || !sub_window)
+ if(!sub_window)
{
WinID = -1; // so far only directx supports WinID in windows