diff Gui/mplayer/play.c @ 10193:f0bcaf5ea675

From: Michael Joosten <joost@c-lab.de> PATCH: fullscreen issues with GUI, WM layers, gmplayer plays first file always twice
author pontscho
date Mon, 26 May 2003 08:34:17 +0000
parents 64b8c5a07c2c
children 2608bf0037b6
line wrap: on
line diff
--- a/Gui/mplayer/play.c	Mon May 26 06:47:52 2003 +0000
+++ b/Gui/mplayer/play.c	Mon May 26 08:34:17 2003 +0000
@@ -32,7 +32,7 @@
 extern float rel_seek_secs;
 extern int abs_seek_pos;
 
-static int mplGotoTheNext = 1;
+int mplGotoTheNext = 1;
 
 void mplFullScreen( void )
 {
@@ -57,7 +57,7 @@
   if ( guiIntfStruct.Playing || gtkShowVideoWindow ) wsFullScreen( &appMPlayer.subWindow );
   fullscreen=vo_fs=appMPlayer.subWindow.isFullScreen;
   wsSetLayer( wsDisplay,appMPlayer.mainWindow.WindowID,appMPlayer.subWindow.isFullScreen );
-  wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen );
+  if ( appMPlayer.menuIsPresent ) wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen );
 
  if ( guiIntfStruct.Playing ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 );
   else wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.sub.R,appMPlayer.sub.G,appMPlayer.sub.B );