# HG changeset patch # User faust3 # Date 1046027908 0 # Node ID abe81caa8cc1a462e4c61ca2b29c9ddb1db8499a # Parent 43a33dff12932e60aeaeb513cfddf47b68bf8c1f fix fullscreenswitching patch by Joey Parrish diff -r 43a33dff1293 -r abe81caa8cc1 libvo/vo_directx.c --- a/libvo/vo_directx.c Sun Feb 23 19:00:11 2003 +0000 +++ b/libvo/vo_directx.c Sun Feb 23 19:18:28 2003 +0000 @@ -811,15 +811,15 @@ 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 @@ 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));