1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-02 04:11:03 +00:00

fix fullscreenswitching patch by Joey Parrish <joey at nicewarrior.org>

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9489 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
faust3 2003-02-23 19:18:28 +00:00
parent 4ed87e35fb
commit 4cb68506db

View File

@ -811,15 +811,15 @@ static uint32_t preinit(const char *arg)
WNDCLASS wc; WNDCLASS wc;
if(arg) if(arg)
{ {
if(!strcmp(arg,"noaccel")) if(strstr(arg,"noaccel"))
{ {
mp_msg(MSGT_VO,MSGL_V,"<vo_directx><INFO>disabled overlay\n"); mp_msg(MSGT_VO,MSGL_V,"<vo_directx><INFO>disabled overlay\n");
nooverlay = 1; nooverlay = 1;
} }
else if(strstr(arg,"ontop"))
{ {
mp_msg(MSGT_VO,MSGL_ERR,"<vo_directx><ERROR>unknown subdevice: %s\n",arg); mp_msg(MSGT_VO,MSGL_V,"<vo_directx><INFO>window ontop\n");
return ENOSYS; ontop = 1;
} }
} }
if (Directx_InitDirectDraw()!= 0)return 1; //init DirectDraw 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); SetWindowPlacement(hWnd,&window_placement);
/*change style and restore the window*/ /*change style and restore the window*/
SetWindowLong(hWnd,GWL_STYLE,WS_OVERLAPPEDWINDOW|WS_SIZEBOX); SetWindowLong(hWnd,GWL_STYLE,WS_OVERLAPPEDWINDOW|WS_SIZEBOX);
window_placement.showCmd = SW_SHOWNORMAL; window_placement.showCmd = SW_RESTORE;
SetWindowPlacement(hWnd,&window_placement ); SetWindowPlacement(hWnd,&window_placement );
/*restore backgroundcolor*/ /*restore backgroundcolor*/
SetClassLongA(hWnd,GCL_HBRBACKGROUND,(int)CreateSolidBrush(windowcolor)); SetClassLongA(hWnd,GCL_HBRBACKGROUND,(int)CreateSolidBrush(windowcolor));