view Gui/interface.c @ 4812:bad436339b03

setting vo_dx and vo_dy in event handling
author alex
date Fri, 22 Feb 2002 19:36:21 +0000
parents c39affa2b376
children 3473ca9ef158
line wrap: on
line source



#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;  }
}