Skip to content

Commit d75b4ca

Browse files
committed
fix(font): font number is not reset after module reinitialization
1 parent 417680c commit d75b4ca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/font/fontlibrary.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,7 @@ int LCUIFont_RenderBitmap(LCUI_FontBitmap *buff, wchar_t ch, int font_id,
841841

842842
static void LCUIFont_InitBase(void)
843843
{
844+
fontlib.count = 0;
844845
fontlib.font_cache_num = 1;
845846
fontlib.font_cache = NEW(LCUI_FontCache, 1);
846847
fontlib.font_cache[0] = FontCache();

0 commit comments

Comments
 (0)