Mercurial > mplayer.hg
comparison Gui/skin/skin.c @ 3080:182163807172
bug fixs
author | pontscho |
---|---|
date | Fri, 23 Nov 2001 01:41:45 +0000 |
parents | bd851a5afcb3 |
children | 2704448de713 |
comparison
equal
deleted
inserted
replaced
3079:d8d342750ed5 | 3080:182163807172 |
---|---|
110 int __base( char * in ) | 110 int __base( char * in ) |
111 { | 111 { |
112 unsigned char fname[512]; | 112 unsigned char fname[512]; |
113 unsigned char tmp[512]; | 113 unsigned char tmp[512]; |
114 int x,y; | 114 int x,y; |
115 int sx=0,sy=0; | |
115 | 116 |
116 CHECKDEFLIST( "base" ); | 117 CHECKDEFLIST( "base" ); |
117 CHECKWINLIST( "base" ); | 118 CHECKWINLIST( "base" ); |
118 | 119 |
119 cutItem( in,fname,',',0 ); | 120 cutItem( in,fname,',',0 ); |
120 x=cutItemToInt( in,',',1 ); | 121 x=cutItemToInt( in,',',1 ); |
121 y=cutItemToInt( in,',',2 ); | 122 y=cutItemToInt( in,',',2 ); |
122 #ifdef DEBUG | 123 sx=cutItemToInt( in,',',3 ); |
123 dbprintf( 3,"\n[skin] base: %s x: %d y: %d\n",fname,x,y ); | 124 sy=cutItemToInt( in,',',4 ); |
125 #ifdef DEBUG | |
126 dbprintf( 3,"\n[skin] base: %s x: %d y: %d ( %dx%d )\n",fname,x,y,sx,sy ); | |
124 #endif | 127 #endif |
125 if ( !strcmp( winList,"main" ) ) | 128 if ( !strcmp( winList,"main" ) ) |
126 { | 129 { |
127 defList->main.x=x; | 130 defList->main.x=x; |
128 defList->main.y=y; | 131 defList->main.y=y; |
160 if ( skinBPRead( tmp,&defList->sub.Bitmap ) ) return 1; | 163 if ( skinBPRead( tmp,&defList->sub.Bitmap ) ) return 1; |
161 defList->sub.x=x; | 164 defList->sub.x=x; |
162 defList->sub.y=y; | 165 defList->sub.y=y; |
163 defList->sub.width=defList->sub.Bitmap.Width; | 166 defList->sub.width=defList->sub.Bitmap.Width; |
164 defList->sub.height=defList->sub.Bitmap.Height; | 167 defList->sub.height=defList->sub.Bitmap.Height; |
168 if ( sx && sy ) | |
169 { | |
170 defList->sub.width=sx; | |
171 defList->sub.height=sy; | |
172 } | |
165 #ifdef DEBUG | 173 #ifdef DEBUG |
166 dbprintf( 3,"[skin] %d,%d %dx%d\n",defList->sub.x,defList->sub.y,defList->sub.width,defList->sub.height ); | 174 dbprintf( 3,"[skin] %d,%d %dx%d\n",defList->sub.x,defList->sub.y,defList->sub.width,defList->sub.height ); |
167 #endif | 175 #endif |
168 } | 176 } |
169 /* | 177 /* |