This commit is contained in:
Kovid Goyal 2021-05-06 08:57:38 +05:30
parent c891432c9d
commit accdf9a6a8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -705,7 +705,7 @@ extract_cell_from_canvas(FontGroup *fg, unsigned int i, unsigned int num_cells)
static inline void
render_group(FontGroup *fg, unsigned int num_cells, unsigned int num_glyphs, CPUCell *cpu_cells, GPUCell *gpu_cells, hb_glyph_info_t *info, hb_glyph_position_t *positions, Font *font, glyph_index glyph, ExtraGlyphs *extra_glyphs, bool center_glyph) {
static SpritePosition* sprite_position[16];
static SpritePosition* sprite_position[MAX_NUM_EXTRA_GLYPHS * 2];
int error = 0;
num_cells = MIN(arraysz(sprite_position), num_cells);
for (unsigned int i = 0; i < num_cells; i++) {