summaryrefslogtreecommitdiffstats
path: root/Gui/skin
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-23 01:41:45 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-23 01:41:45 +0000
commita1c02f562c534f9e9ff099fc084d45358b4a3106 (patch)
tree94b79007b366b5af7853d7c26a35a071ddc383aa /Gui/skin
parent590886a8f411a65d0be0b9d87b7e1bb26f8c1485 (diff)
downloadmpv-a1c02f562c534f9e9ff099fc084d45358b4a3106.tar.bz2
mpv-a1c02f562c534f9e9ff099fc084d45358b4a3106.tar.xz
bug fixs
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3081 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/skin')
-rw-r--r--Gui/skin/skin.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/Gui/skin/skin.c b/Gui/skin/skin.c
index 6b66506a79..5a32945fb6 100644
--- a/Gui/skin/skin.c
+++ b/Gui/skin/skin.c
@@ -112,6 +112,7 @@ int __base( char * in )
unsigned char fname[512];
unsigned char tmp[512];
int x,y;
+ int sx=0,sy=0;
CHECKDEFLIST( "base" );
CHECKWINLIST( "base" );
@@ -119,8 +120,10 @@ int __base( char * in )
cutItem( in,fname,',',0 );
x=cutItemToInt( in,',',1 );
y=cutItemToInt( in,',',2 );
+ sx=cutItemToInt( in,',',3 );
+ sy=cutItemToInt( in,',',4 );
#ifdef DEBUG
- dbprintf( 3,"\n[skin] base: %s x: %d y: %d\n",fname,x,y );
+ dbprintf( 3,"\n[skin] base: %s x: %d y: %d ( %dx%d )\n",fname,x,y,sx,sy );
#endif
if ( !strcmp( winList,"main" ) )
{
@@ -162,6 +165,11 @@ int __base( char * in )
defList->sub.y=y;
defList->sub.width=defList->sub.Bitmap.Width;
defList->sub.height=defList->sub.Bitmap.Height;
+ if ( sx && sy )
+ {
+ defList->sub.width=sx;
+ defList->sub.height=sy;
+ }
#ifdef DEBUG
dbprintf( 3,"[skin] %d,%d %dx%d\n",defList->sub.x,defList->sub.y,defList->sub.width,defList->sub.height );
#endif