[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.17,1.18

Zoltan Ponekker pontscho at mplayer.dev.hu
Sat Sep 1 15:39:37 CEST 2001


Update of /cvsroot/mplayer/main/Gui/mplayer
In directory mplayer:/var/tmp.root/cvs-serv15342

Modified Files:
	mw.h 
Log Message:
fix key handling ?

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- mw.h	31 Aug 2001 21:19:52 -0000	1.17
+++ mw.h	1 Sep 2001 13:38:32 -0000	1.18
@@ -125,12 +125,16 @@
    }
 }
 
+int mainis = 1;
+
 void mplMainDraw( wsParamDisplay )
 {
  wItem    * item;
  txSample * image = NULL;
  int        i;
 
+if ( appMPlayer.mainWindow.Focused == 2 ) mainis=1;
+
  if ( appMPlayer.mainWindow.Visible == wsWindowNotVisible ||
       !mainVisible ) return;
 //      !appMPlayer.mainWindow.Mapped ) return;
@@ -532,8 +536,14 @@
    case wsRight:     msg=evForward10sec; break;
    case wsLeft:      msg=evBackward10sec; break;
 
-   case wsGrayMul:   msg=evIncVolume; break;
-   case wsGrayDiv:   msg=evDecVolume; break;
+   case wsGrayMul:   
+        msg=evIncVolume; 
+	vo_x11_putkey( Key );
+	break;
+   case wsGrayDiv:   
+        msg=evDecVolume; 
+	vo_x11_putkey( Key );
+	break;
 
    case wsEnter:     msg=evPlay; break;
    case wsSpace:     msg=evPause; break;




More information about the MPlayer-cvslog mailing list