summaryrefslogtreecommitdiffstats
path: root/Gui/mplayer/play.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-07 21:04:14 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-07 21:04:14 +0000
commit83e1eed13d1b566420b416fef2ec044cfd3ba92b (patch)
tree3e809bd0883bc06c7ad94fb8eb59d7732a2894ce /Gui/mplayer/play.c
parent70c0a8df28688ae933c392fdf0ccecc88c57bd6e (diff)
downloadmpv-83e1eed13d1b566420b416fef2ec044cfd3ba92b.tar.bz2
mpv-83e1eed13d1b566420b416fef2ec044cfd3ba92b.tar.xz
some bug fix, and add decoration item to skin conffile. faszom(C)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1867 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/mplayer/play.c')
-rw-r--r--Gui/mplayer/play.c42
1 files changed, 19 insertions, 23 deletions
diff --git a/Gui/mplayer/play.c b/Gui/mplayer/play.c
index b1cd724843..eb4629a4f4 100644
--- a/Gui/mplayer/play.c
+++ b/Gui/mplayer/play.c
@@ -24,7 +24,6 @@ int moviex,moviey,moviewidth,movieheight;
#include "play.h"
#include "../skin/skin.h"
-#include "../config.h"
#include "../error.h"
#include "../language.h"
@@ -127,7 +126,7 @@ listItems tmpList;
void ChangeSkin( void )
{
- if ( strcmp( cfgSkin,gtkShMem->sb.name ) )
+ if ( strcmp( skinName,gtkShMem->sb.name ) )
{
int ret;
#ifdef DEBUG
@@ -145,8 +144,8 @@ void ChangeSkin( void )
appInitStruct( &tmpList );
skinAppMPlayer=&appMPlayer;
appInitStruct( &appMPlayer );
- if ( !ret ) strcpy( cfgSkin,gtkShMem->sb.name );
- skinRead( cfgSkin );
+ if ( !ret ) strcpy( skinName,gtkShMem->sb.name );
+ skinRead( skinName );
if ( ret )
{
@@ -154,24 +153,6 @@ void ChangeSkin( void )
return;
}
-// appCopy( &appMPlayer,&tmpList );
-// appInitStruct( &tmpList );
-// skinAppMPlayer=&appMPlayer;
-// strcpy( cfgSkin,gtkShMem->sb.name );
-
- if ( mplDrawBuffer ) free( mplDrawBuffer );
- if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
- { message( False,langNEMDB ); return; }
- wsResizeWindow( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
- wsMoveWindow( &appMPlayer.mainWindow,appMPlayer.main.x,appMPlayer.main.y );
- wsResizeImage( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
- wsSetShape( &appMPlayer.mainWindow,appMPlayer.main.Mask.Image );
- mainVisible=1; mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow );
-
- btnModify( evSetVolume,mplShMem->Volume );
- btnModify( evSetBalance,mplShMem->Balance );
- btnModify( evSetMoviePosition,mplShMem->Position );
-
if ( appMPlayer.menuBase.Bitmap.Image )
{
if ( mplMenuDrawBuffer ) free( mplMenuDrawBuffer );
@@ -186,7 +167,6 @@ void ChangeSkin( void )
if ( !mplShMem->Playing )
{
mplSkinChanged=0;
-// if ( appMPlayer.subWindow.isFullScreen ) wsFullScreen( &appMPlayer.subWindow );
if ( !appMPlayer.subWindow.isFullScreen )
{
wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
@@ -196,6 +176,22 @@ void ChangeSkin( void )
wsClearWindow( appMPlayer.subWindow );
mplSubRender=1; wsPostRedisplay( &appMPlayer.subWindow );
}
+
+ if ( mplDrawBuffer ) free( mplDrawBuffer );
+ if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
+ { message( False,langNEMDB ); return; }
+ wsVisibleWindow( &appMPlayer.mainWindow,wsHideWindow );
+ wsResizeWindow( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
+ wsMoveWindow( &appMPlayer.mainWindow,appMPlayer.main.x,appMPlayer.main.y );
+ wsResizeImage( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
+ wsSetShape( &appMPlayer.mainWindow,appMPlayer.main.Mask.Image );
+ mainVisible=1; mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow );
+ wsWindowDecoration( &appMPlayer.mainWindow,appMPlayer.mainDecoration );
+ wsVisibleWindow( &appMPlayer.mainWindow,wsShowWindow );
+
+ btnModify( evSetVolume,mplShMem->Volume );
+ btnModify( evSetBalance,mplShMem->Balance );
+ btnModify( evSetMoviePosition,mplShMem->Position );
}
mplShMem->SkinChange=0;
}