From 4cb68506db668b56b38cae075462e7ae8442f2e1 Mon Sep 17 00:00:00 2001 From: faust3 Date: Sun, 23 Feb 2003 19:18:28 +0000 Subject: fix fullscreenswitching patch by Joey Parrish git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9489 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_directx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libvo') diff --git a/libvo/vo_directx.c b/libvo/vo_directx.c index 1f687a4054..fc6b7d2de7 100644 --- a/libvo/vo_directx.c +++ b/libvo/vo_directx.c @@ -811,15 +811,15 @@ static uint32_t preinit(const char *arg) WNDCLASS wc; if(arg) { - if(!strcmp(arg,"noaccel")) + if(strstr(arg,"noaccel")) { mp_msg(MSGT_VO,MSGL_V,"disabled overlay\n"); nooverlay = 1; } - else + if(strstr(arg,"ontop")) { - mp_msg(MSGT_VO,MSGL_ERR,"unknown subdevice: %s\n",arg); - return ENOSYS; + mp_msg(MSGT_VO,MSGL_V,"window ontop\n"); + ontop = 1; } } if (Directx_InitDirectDraw()!= 0)return 1; //init DirectDraw @@ -1158,7 +1158,7 @@ static uint32_t control(uint32_t request, void *data, ...) SetWindowPlacement(hWnd,&window_placement); /*change style and restore the window*/ SetWindowLong(hWnd,GWL_STYLE,WS_OVERLAPPEDWINDOW|WS_SIZEBOX); - window_placement.showCmd = SW_SHOWNORMAL; + window_placement.showCmd = SW_RESTORE; SetWindowPlacement(hWnd,&window_placement ); /*restore backgroundcolor*/ SetClassLongA(hWnd,GCL_HBRBACKGROUND,(int)CreateSolidBrush(windowcolor)); -- cgit v1.2.3