# HG changeset patch # User pontscho # Date 1036263434 0 # Node ID 79ddb7291765ccb6315eccf9ed99297eef44f0c6 # Parent 3d2ec2568659cae8537102481b4f20482f13c296 not needed diff -r 3d2ec2568659 -r 79ddb7291765 Gui/mplayer/mplayer.c --- a/Gui/mplayer/mplayer.c Sat Nov 02 18:56:16 2002 +0000 +++ b/Gui/mplayer/mplayer.c Sat Nov 02 18:57:14 2002 +0000 @@ -1,47 +1,28 @@ -#include -#include -#include #include -#include -#include -#include -#include "./mplayer.h" #include "../app.h" -#include "../cfg.h" -#include "../interface.h" #include "../skin/skin.h" -#include "../skin/font.h" #include "../wm/ws.h" -#include "../wm/wskeys.h" -#include "../wm/widget.h" #include "../wm/wsxdnd.h" -#include "../bitmap/bitmap.h" #include "../../config.h" #include "../../help_mp.h" #include "../../libvo/x11_common.h" -#include "../../libmpdemux/stream.h" -#include "../../mp_msg.h" - -#include -#include -#include -#include - -#define mplRedrawTimerConst 5 - -int mplRedrawTimer = mplRedrawTimerConst; void mplEventHandling( int msg,float param ); +extern void mplMainDraw( wsParamDisplay ); +extern void mplEventHandling( int msg,float param ); +extern void mplMainMouseHandle( int Button,int X,int Y,int RX,int RY ); +extern void mplMainKeyHandle( int KeyCode,int Type,int Key ); +extern void mplDandDHandler(int num,char** files); +extern void mplSubDraw( wsParamDisplay ); +extern void mplSubMouseHandle( int Button,int X,int Y,int RX,int RY ); + #include "widgets.h" #include "play.h" #include "menu.h" -#include "mw.h" -#include "sw.h" -#include "widgets.h" void mplInit( void * disp ) { diff -r 3d2ec2568659 -r 79ddb7291765 Gui/mplayer/mw.c --- a/Gui/mplayer/mw.c Sat Nov 02 18:56:16 2002 +0000 +++ b/Gui/mplayer/mw.c Sat Nov 02 18:57:14 2002 +0000 @@ -1,12 +1,32 @@ // main window +#include +#include +#include +#include +#include + +#include "../app.h" +#include "../skin/font.h" +#include "../wm/ws.h" + +#include "../../config.h" +#include "../../help_mp.h" +#include "../../libvo/x11_common.h" + #include "../../libmpdemux/stream.h" #include "../../mixer.h" #include "../../libvo/sub.h" #include "../../mplayer.h" +#include "play.h" +#include "widgets.h" + extern unsigned int GetTimerMS( void ); +extern void mplHideMenu( int mx,int my,int w ); +extern void mplShowMenu( int mx,int my ); +extern void mplMenuMouseHandle( int X,int Y,int RX,int RY ); unsigned char * mplDrawBuffer = NULL; int mplMainRender = 1; @@ -470,7 +490,6 @@ case evRedraw: mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow ); - mplRedrawTimer=mplRedrawTimerConst; break; // --- system events #ifdef MP_DEBUG diff -r 3d2ec2568659 -r 79ddb7291765 Gui/mplayer/play.c --- a/Gui/mplayer/play.c Sat Nov 02 18:56:16 2002 +0000 +++ b/Gui/mplayer/play.c Sat Nov 02 18:57:14 2002 +0000 @@ -16,7 +16,6 @@ #include "../app.h" #include "../wm/wskeys.h" -#include "../wm/widget.h" #include "../interface.h" #include "widgets.h" diff -r 3d2ec2568659 -r 79ddb7291765 Gui/mplayer/sw.c --- a/Gui/mplayer/sw.c Sat Nov 02 18:56:16 2002 +0000 +++ b/Gui/mplayer/sw.c Sat Nov 02 18:57:14 2002 +0000 @@ -1,9 +1,22 @@ // sub window +#include "../app.h" +#include "../interface.h" +#include "../../help_mp.h" +#include "widgets.h" + int mplSubRender = 0; int SubVisible = 0; +extern int boxMoved; +extern int sx,sy; +extern int i,pot; + +extern void mplHideMenu( int mx,int my,int w ); +extern void mplShowMenu( int mx,int my ); +extern void mplMenuMouseHandle( int X,int Y,int RX,int RY ); + void mplSubDraw( wsParamDisplay ) { if ( appMPlayer.subWindow.State == wsWindowClosed ) exit_player( MSGTR_Exit_quit );