From dba198bb1d25daeb6282bb7fbc3babd432f0f6d1 Mon Sep 17 00:00:00 2001 From: atmosfear Date: Tue, 8 May 2001 19:50:22 +0000 Subject: [PATCH] Deals with unicode/nounicode. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@728 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/font_load.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libvo/font_load.c b/libvo/font_load.c index 02e9a918a1..1e8e29994b 100644 --- a/libvo/font_load.c +++ b/libvo/font_load.c @@ -44,6 +44,7 @@ int i,j; int chardb=0; int fontdb=-1; int version=0; +int sub_unicode=0; desc=malloc(sizeof(font_desc_t));if(!desc) return NULL; memset(desc,0,sizeof(font_desc_t)); @@ -174,7 +175,7 @@ while(fgets(sor,1020,f)){ int chr=p[0][0]; int start=atoi(p[1]); int end=atoi(p[2]); - if(chr>=0x80) chr=(chr<<8)+p[0][1]; + 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