[Mplayer-cvslog] CVS: main/libvo font_load.c,1.5,1.6

GEREOFFY arpi_esp at users.sourceforge.net
Tue Mar 27 02:38:11 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory usw-pr-cvs1:/tmp/cvs-serv7782

Modified Files:
	font_load.c 
Log Message:
hex charcode support

Index: font_load.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/font_load.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** font_load.c	2001/03/26 20:28:09	1.5
--- font_load.c	2001/03/27 00:38:09	1.6
***************
*** 171,178 ****
  
    if(strcmp(section,"[characters]")==0){
!       if(pdb==3 && strlen(p[0])==1){
            int chr=p[0][0];
            int start=atoi(p[1]);
            int end=atoi(p[2]);
            if(end<start) {
                printf("error in font desc: end<start for char '%c'\n",chr);
--- 171,179 ----
  
    if(strcmp(section,"[characters]")==0){
!       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);


_______________________________________________
Mplayer-cvslog mailing list
Mplayer-cvslog at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-cvslog



More information about the MPlayer-cvslog mailing list