summaryrefslogtreecommitdiffstats
path: root/Gui/interface.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-17 22:39:43 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-17 22:39:43 +0000
commit4ae9c5c307d951bf995434cfd6948c7a716516e7 (patch)
tree2f202c794043dca9ba4c4ddeae19c6adbd9c6c48 /Gui/interface.c
parentd97e2769db3d66f3abc3a3ecb307309161f80379 (diff)
downloadmpv-4ae9c5c307d951bf995434cfd6948c7a716516e7.tar.bz2
mpv-4ae9c5c307d951bf995434cfd6948c7a716516e7.tar.xz
- add playbar
- add vpotmeter - fix gtk menu's pixel bug - fix some critical (10l) bug git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8974 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.c')
-rw-r--r--Gui/interface.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index c2f53978f6..8bc3b901f1 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -203,6 +203,9 @@ void guiInit( void )
wsCreateImage( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Width,appMPlayer.sub.Bitmap.Height );
wsXDNDMakeAwareness(&appMPlayer.subWindow);
+ mplMenuInit();
+ mplPBInit();
+
vo_setwindow( appMPlayer.subWindow.WindowID, appMPlayer.subWindow.wGC );
// i=wsHideFrame|wsMaxSize|wsHideWindow;
@@ -215,8 +218,6 @@ void guiInit( void )
wsSetShape( &appMPlayer.mainWindow,appMPlayer.main.Mask.Image );
wsXDNDMakeAwareness(&appMPlayer.mainWindow);
- mplMenuInit();
-
#ifdef DEBUG
mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[main] Depth on screen: %d\n",wsDepthOnScreen );
mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[main] parent: 0x%x\n",(int)appMPlayer.mainWindow.WindowID );
@@ -233,7 +234,7 @@ void guiInit( void )
appMPlayer.subWindow.KeyHandler=mplMainKeyHandle;
appMPlayer.subWindow.DandDHandler=mplDandDHandler;
- wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
+ wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.sub.R,appMPlayer.sub.G,appMPlayer.sub.B );
wsClearWindow( appMPlayer.subWindow );
if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize );
@@ -433,7 +434,7 @@ int guiGetEvent( int type,char * arg )
switch ( type )
{
case guiXEvent:
- guiIntfStruct.event_struct=(void *)arg;
+ guiIntfStruct.event_struct=(void *)arg;
wsEvents( wsDisplay,(XEvent *)arg,NULL );
gtkEventHandling();
break;