Skip to content

Commit

Permalink
fix(font): font number is not reset after module reinitialization
Browse files Browse the repository at this point in the history
  • Loading branch information
lc-soft committed Aug 20, 2018
1 parent 417680c commit d75b4ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/font/fontlibrary.c
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,7 @@ int LCUIFont_RenderBitmap(LCUI_FontBitmap *buff, wchar_t ch, int font_id,

static void LCUIFont_InitBase(void)
{
fontlib.count = 0;
fontlib.font_cache_num = 1;
fontlib.font_cache = NEW(LCUI_FontCache, 1);
fontlib.font_cache[0] = FontCache();
Expand Down

0 comments on commit d75b4ca

Please sign in to comment.