[MPlayer-dev-eng] [PATCH] Making Fullscreen/Window-Mode global over current session-2
Ronny T. Lampert
freeky at uni.de
Thu Jan 2 17:57:32 CET 2003
> attached is the patch against -current. Please review and apply if wanted
Sorry for the malformed patch. This time as true attachment with proper
line-breaks (new-year-party-lag...)
-Freek
-------------- next part --------------
--- MPlayer-20030102/mplayer.c Tue Dec 31 03:26:32 2002
+++ MPlayer-20030102f/mplayer.c Thu Jan 2 16:19:57 2003
@@ -2525,10 +2525,16 @@
case MP_CMD_VO_FULLSCREEN:
{
#ifdef HAVE_NEW_GUI
- if ( use_gui ) guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN );
- else
+ if ( use_gui ) {
+ guiGetEvent( guiIEvent,(char *)MP_CMD_GUI_FULLSCREEN );
+ /* toggle fullscreen with XOR */
+ fullscreen ^= 1;
+ } else {
#endif
- if(video_out && vo_config_count) video_out->control(VOCTRL_FULLSCREEN, 0);
+ if(video_out && vo_config_count) {
+ video_out->control(VOCTRL_FULLSCREEN, 0);
+ fullscreen ^= 1;
+ }
} break;
case MP_CMD_PANSCAN : {
if ( !video_out ) break;
More information about the MPlayer-dev-eng
mailing list