程序能跑起来了,但跑得不正常

This commit is contained in:
2025-06-29 11:53:35 +08:00
parent e6cd339e78
commit 98f591b498
7 changed files with 262 additions and 248 deletions

View File

@@ -396,12 +396,12 @@ int WIN_DecodeImg(WIN_PicStruct *pic,const char *name)
int WIN_GetWordData(u8 size,u8 type,unsigned char *buff, int word, int buff_size)
{
u8 gbk[3]={0};
u8 gbk[4]={0};
u8 uni[3]={0};
if (word>0x80)
{
gbk[0]=word>>8;
gbk[0]=(word>>8)&0xff;
gbk[1]=word&0xff;
}
else
@@ -409,7 +409,7 @@ int WIN_GetWordData(u8 size,u8 type,unsigned char *buff, int word, int buff_size
gbk[0]=word;
}
gbk2uni_str(gbk,uni);
utf82uni_str(gbk,uni);
if (g_ft_face)