[MPlayer-dev-eng] [PATCH][BUG] directx fullscreen support acts funny
Joey Parrish
joey at nicewarrior.org
Sun Feb 23 15:48:35 CET 2003
Hello,
I have noticed that vo_directx fullscreen support always acts funny
on cygwin mplayer. When playing a video in a normal window, everything
is fine. Press 'f' for fullscreen, fullscreen works. Press 'f' for
windowed mode, and the window is minimized. Click to restore the
window, and it is the size of the screen. (Fullscreen, but with window
decoration, etc.) Press 'f' again for fullscreen, works. Press 'f'
again for windowed, works. After this point, fullscreen switching
always works.
Attached below is a patch that eliminates this problem so that
fullscreen switching works correctly the first time.
Thanks,
--Joey
-------------- next part --------------
diff -ur 0_90.cvs/libvo/vo_directx.c 0_90.dev/libvo/vo_directx.c
--- 0_90.cvs/libvo/vo_directx.c Mon Dec 30 17:31:40 2002
+++ 0_90.dev/libvo/vo_directx.c Sun Feb 23 08:31:54 2003
@@ -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));
More information about the MPlayer-dev-eng
mailing list