1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-01 23:00:41 +00:00

hex charcode support

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@220 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi_esp 2001-03-27 00:38:09 +00:00
parent 180ba6b355
commit 74e1c9743d

View File

@ -170,10 +170,11 @@ while(fgets(sor,1020,f)){
} else
if(strcmp(section,"[characters]")==0){
if(pdb==3 && strlen(p[0])==1){
if(pdb==3){
int chr=p[0][0];
int start=atoi(p[1]);
int end=atoi(p[2]);
if(strlen(p[0])!=1) chr=strtol(p[0],NULL,0);
if(end<start) {
printf("error in font desc: end<start for char '%c'\n",chr);
} else {