fix TileFont::Registry function
This commit is contained in:
parent
2ae2228546
commit
346d8b3279
@ -1 +1 @@
|
|||||||
Subproject commit 7eb1cafe575cc305a9d09fce66494a5445da5305
|
Subproject commit b2676f3e15b059069611a20a4b998b2387dbe9c2
|
@ -35,8 +35,6 @@ namespace hgl
|
|||||||
const u32char *cp=ch_list;
|
const u32char *cp=ch_list;
|
||||||
TileObject *to;
|
TileObject *to;
|
||||||
|
|
||||||
List<u32char> new_chars;
|
|
||||||
|
|
||||||
int in_active_count; //在活跃列表中的数量
|
int in_active_count; //在活跃列表中的数量
|
||||||
int in_idle_count; //在闲置列表中的数量
|
int in_idle_count; //在闲置列表中的数量
|
||||||
int out_count; //不存在的字符数量
|
int out_count; //不存在的字符数量
|
||||||
@ -52,7 +50,7 @@ namespace hgl
|
|||||||
FontBitmap *bmp;
|
FontBitmap *bmp;
|
||||||
cp=ch_list;
|
cp=ch_list;
|
||||||
|
|
||||||
if(new_chars.GetCount())
|
if(out_count>0)
|
||||||
{
|
{
|
||||||
tile_data->BeginCommit();
|
tile_data->BeginCommit();
|
||||||
for(uint i=0;i<ch_count;i++)
|
for(uint i=0;i<ch_count;i++)
|
||||||
@ -77,10 +75,9 @@ namespace hgl
|
|||||||
for(uint i=0;i<ch_count;i++)
|
for(uint i=0;i<ch_count;i++)
|
||||||
{
|
{
|
||||||
to_res.Get(*cp,to);
|
to_res.Get(*cp,to);
|
||||||
++cp;
|
|
||||||
|
|
||||||
*tp=to->uv_float;
|
uv_map.Add(*cp,to->uv_float);
|
||||||
++tp;
|
++cp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user