[Mplayer-cvslog] CVS: main/libvo font_load.c,1.11,1.12

Felix Buenemann atmosfear at users.sourceforge.net
Tue May 8 21:50:24 CEST 2001


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

Modified Files:
	font_load.c 
Log Message:
Deals with unicode/nounicode.


Index: font_load.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/font_load.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -r1.11 -r1.12
*** font_load.c	2001/05/06 02:26:17	1.11
--- font_load.c	2001/05/08 19:50:22	1.12
***************
*** 45,48 ****
--- 45,49 ----
  int fontdb=-1;
  int version=0;
+ int sub_unicode=0;
  
  desc=malloc(sizeof(font_desc_t));if(!desc) return NULL;
***************
*** 175,179 ****
            int start=atoi(p[1]);
            int end=atoi(p[2]);
!           if(chr>=0x80) chr=(chr<<8)+p[0][1];
            else if(strlen(p[0])!=1) chr=strtol(p[0],NULL,0);
            if(end<start) {
--- 176,180 ----
            int start=atoi(p[1]);
            int end=atoi(p[2]);
!           if(sub_unicode && (chr>=0x80)) chr=(chr<<8)+p[0][1];
            else if(strlen(p[0])!=1) chr=strtol(p[0],NULL,0);
            if(end<start) {


_______________________________________________
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