[MPlayer-dev-eng] [PATCH] Making Fullscreen/Window-Mode global over current session
Ronny T. Lampert
freeky at uni.de
Thu Jan 2 17:17:12 CET 2003
Hi,
attached is the patch against -current. Please review and apply if wanted
(I'm not sure if the 'if... else' could've made a bit easier by simply
adding the
'fullscreen ^= 1'
statement direct after the 'case MP_CMD_VO_FULLSCREEN: { '
-- I don't know if non-video-outputs dislike fullscreen set )
Kind regards,
Freek
diff -ur MPlayer-20030102/mplayer.c MPlayer-20030102f/mplayer.c
--- 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