diff Gui/interface.c @ 4798:c39affa2b376

new interface ? :)
author pontscho
date Thu, 21 Feb 2002 22:48:47 +0000
parents
children 3473ca9ef158
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Gui/interface.c	Thu Feb 21 22:48:47 2002 +0000
@@ -0,0 +1,25 @@
+
+
+#include "ws.h"
+#include "mplayer/play.h"
+#include "interface.h"
+#include "../mplayer.h"
+
+void guiGetEvent( int type,char * arg )
+{
+ switch ( type )
+  {
+   case guiXEvent:
+        wsEvents( wsDisplay,(XEvent *)arg,NULL );
+	break;
+   case guiCEvent:
+	break;
+  }
+}
+
+void guiEventHandling( void )
+{
+ if ( use_gui && !mplShMem->Playing ) wsHandleEvents();
+ mplTimerHandler(0); // handle GUI timer events
+ if ( mplShMem->SkinChange ) { ChangeSkin(); mplShMem->SkinChange=0;  }
+}