Skip to content

Commit

Permalink
Rebuild nuklear.h
Browse files Browse the repository at this point in the history
Fixes #648
  • Loading branch information
RobLoach committed Jun 14, 2024
1 parent 47f570c commit 504f831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nuklear.h
Original file line number Diff line number Diff line change
Expand Up @@ -16727,15 +16727,15 @@ nk_font_bake_pack(struct nk_font_baker *baker,
it = config_iter;
do {
struct stbtt_fontinfo *font_info = &baker->build[i++].info;
font_info->userdata = alloc;
font_info->userdata = (void*)alloc;

if (!stbtt_InitFont(font_info, (const unsigned char*)it->ttf_blob, stbtt_GetFontOffsetForIndex((const unsigned char*)it->ttf_blob, 0)))
return nk_false;
} while ((it = it->n) != config_iter);
}
*height = 0;
*width = (total_glyph_count > 1000) ? 1024 : 512;
stbtt_PackBegin(&baker->spc, 0, (int)*width, (int)max_height, 0, 1, alloc);
stbtt_PackBegin(&baker->spc, 0, (int)*width, (int)max_height, 0, 1, (void*)alloc);
{
int input_i = 0;
int range_n = 0;
Expand Down

0 comments on commit 504f831

Please sign in to comment.