comparison Gui/skin/font.c @ 1907:83291fafe66c

add new features. and fix skin error loop.
author pontscho
date Mon, 17 Sep 2001 21:16:00 +0000
parents a4156c8cdd57
children 3473ca9ef158
comparison
equal deleted inserted replaced
1906:01bab6f60ede 1907:83291fafe66c
75 cutItem( param,tmp,',',0 ); Fonts[id]->Fnt[i].x=atoi( tmp ); 75 cutItem( param,tmp,',',0 ); Fonts[id]->Fnt[i].x=atoi( tmp );
76 cutItem( param,tmp,',',1 ); Fonts[id]->Fnt[i].y=atoi( tmp ); 76 cutItem( param,tmp,',',1 ); Fonts[id]->Fnt[i].y=atoi( tmp );
77 cutItem( param,tmp,',',2 ); Fonts[id]->Fnt[i].sx=atoi( tmp ); 77 cutItem( param,tmp,',',2 ); Fonts[id]->Fnt[i].sx=atoi( tmp );
78 cutItem( param,tmp,',',3 ); Fonts[id]->Fnt[i].sy=atoi( tmp ); 78 cutItem( param,tmp,',',3 ); Fonts[id]->Fnt[i].sy=atoi( tmp );
79 #ifdef DEBUG 79 #ifdef DEBUG
80 dbprintf( 0,"[font] char: '%s' params: %d,%d %dx%d\n",command,Fonts[id]->Fnt[i].x,Fonts[id]->Fnt[i].y,Fonts[id]->Fnt[i].sx,Fonts[id]->Fnt[i].sy ); 80 dbprintf( 3,"[font] char: '%s' params: %d,%d %dx%d\n",command,Fonts[id]->Fnt[i].x,Fonts[id]->Fnt[i].y,Fonts[id]->Fnt[i].sx,Fonts[id]->Fnt[i].sy );
81 #endif 81 #endif
82 } 82 }
83 else 83 else
84 { 84 {
85 if ( !strcmp( command,"image" ) ) 85 if ( !strcmp( command,"image" ) )
86 { 86 {
87 strcpy( tmp,path ); strcat( tmp,param ); 87 strcpy( tmp,path ); strcat( tmp,param );
88 #ifdef DEBUG 88 #ifdef DEBUG
89 dbprintf( 0,"[font] font imagefile: %s\n",tmp ); 89 dbprintf( 3,"[font] font imagefile: %s\n",tmp );
90 #endif 90 #endif
91 if ( skinBPRead( tmp,&Fonts[id]->Bitmap ) ) return -2; 91 if ( skinBPRead( tmp,&Fonts[id]->Bitmap ) ) return -2;
92 } 92 }
93 } 93 }
94 } 94 }