used get_max

This commit is contained in:
hyzboy 2022-02-18 19:59:02 +08:00
parent 33b8ce120e
commit 6a039b8a51
2 changed files with 3 additions and 5 deletions

2
CMCore

@ -1 +1 @@
Subproject commit 53449b1d4c579efd6f8bd2de6b315cc0663a1ecd
Subproject commit 2ba3003685b788a5484fdf103249b81008384cb4

View File

@ -27,8 +27,7 @@ namespace hgl
||!fs
||fs==default_source)return;
if(fs->GetCharHeight()>max_char_height)
max_char_height=fs->GetCharHeight();
get_max(max_char_height,fs->GetCharHeight());
source_map.Update(ub,fs);
}
@ -43,8 +42,7 @@ namespace hgl
for(int i=0;i<count;i++)
{
if((*fsp)->right->GetCharHeight()>max_char_height)
max_char_height=(*fsp)->right->GetCharHeight();
get_max(max_char_height,(*fsp)->right->GetCharHeight());
++fsp;
}