[Mplayer-cvslog] CVS: main/libvo font_load.h,1.1,1.2 font_load.c,1.1,1.2

GEREOFFY arpi_esp at users.sourceforge.net
Sun Mar 25 21:10:55 CEST 2001


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

Modified Files:
	font_load.h font_load.c 
Log Message:
desc fileformat changes

Index: font_load.h
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/font_load.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** font_load.h	2001/03/25 04:28:40	1.1
--- font_load.h	2001/03/25 19:10:52	1.2
***************
*** 7,10 ****
--- 7,11 ----
  
  typedef struct {
+     char *name;
      int spacewidth;
      int charspace;

Index: font_load.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/font_load.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** font_load.c	2001/03/25 04:28:40	1.1
--- font_load.c	2001/03/25 19:10:52	1.2
***************
*** 42,45 ****
--- 42,46 ----
  int chardb=0;
  int fontdb=-1;
+ int version=0;
  
  desc=malloc(sizeof(font_desc_t));if(!desc) return NULL;
***************
*** 123,126 ****
--- 124,135 ----
  
    if(strcmp(section,"[info]")==0){
+       if(pdb==2 && strcmp(p[0],"name")==0){
+           desc->name=strdup(p[1]);
+           continue;
+       }
+       if(pdb==2 && strcmp(p[0],"descversion")==0){
+           version=atoi(p[1]);
+           continue;
+       }
        if(pdb==2 && strcmp(p[0],"spacewidth")==0){
            desc->spacewidth=atoi(p[1]);
***************
*** 136,139 ****
--- 145,149 ----
        }
    } else
+ 
    if(strcmp(section,"[characters]")==0){
        if(pdb==3 && strlen(p[0])==1){


_______________________________________________
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