[Mplayer-cvslog] CVS: main/Gui/skin skin.c,1.9,1.10
Zoltan Ponekker
pontscho at mplayer.dev.hu
Fri Nov 23 02:41:47 CET 2001
Update of /cvsroot/mplayer/main/Gui/skin
In directory mplayer:/var/tmp.root/cvs-serv7742/Gui/skin
Modified Files:
skin.c
Log Message:
bug fixs
Index: skin.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/skin/skin.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- skin.c 9 Nov 2001 12:58:43 -0000 1.9
+++ skin.c 23 Nov 2001 01:41:40 -0000 1.10
@@ -112,6 +112,7 @@
unsigned char fname[512];
unsigned char tmp[512];
int x,y;
+ int sx=0,sy=0;
CHECKDEFLIST( "base" );
CHECKWINLIST( "base" );
@@ -119,8 +120,10 @@
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 @@
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
More information about the MPlayer-cvslog
mailing list