Skip to content

Commit

Permalink
优化代码
Browse files Browse the repository at this point in the history
  • Loading branch information
HEYAHONG committed Dec 8, 2024
1 parent e6c3caf commit 1b78481
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions hbox/gui/hgui_gui_dotfont.c
Original file line number Diff line number Diff line change
Expand Up @@ -590,19 +590,19 @@ static bool ascii_show_char(const hgui_gui_dotfont_t * dotfont,uint32_t Char,siz
{
if(size1==8)
{
temp=ascii_0806[chr1][i]; //调用0806字体
temp=dotfont->font[chr1*6+i]; //调用0806字体
}
else if(size1==12)
{
temp=ascii_1206[chr1][i]; //调用1206字体
temp=dotfont->font[chr1*12+i]; //调用1206字体
}
else if(size1==16)
{
temp=ascii_1608[chr1][i]; //调用1608字体
temp=dotfont->font[chr1*16+i]; //调用1608字体
}
else if(size1==24)
{
temp=ascii_2412[chr1][i]; //调用2412字体
temp=dotfont->font[chr1*36+i]; //调用2412字体
}
else
{
Expand Down

0 comments on commit 1b78481

Please sign in to comment.