From 506c14dcc45a5b81f86bf17e1852660b8ba65b04 Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 6 Nov 2016 12:09:08 +0100 Subject: [PATCH] No need for inconsistency, let's just not have this at all. --- gfx/drivers_font_renderer/stb_unicode.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/drivers_font_renderer/stb_unicode.c b/gfx/drivers_font_renderer/stb_unicode.c index a51e2d3a28..2288b44576 100644 --- a/gfx/drivers_font_renderer/stb_unicode.c +++ b/gfx/drivers_font_renderer/stb_unicode.c @@ -84,7 +84,7 @@ static unsigned font_renderer_stb_unicode_get_slot(stb_unicode_font_renderer_t * static uint32_t font_renderer_stb_unicode_update_atlas( stb_unicode_font_renderer_t *self, uint32_t charcode) { - int y0, x1, advance_width, left_side_bearing; + int advance_width, left_side_bearing; int id, glyph_index, offset_x, offset_y; struct font_glyph *glyph = NULL; uint8_t *dst = NULL; @@ -116,7 +116,7 @@ static uint32_t font_renderer_stb_unicode_update_atlas( self->atlas.width, self->scale_factor, self->scale_factor, glyph_index); stbtt_GetGlyphHMetrics(&self->info, glyph_index, &advance_width, &left_side_bearing); - stbtt_GetGlyphBox(&self->info, glyph_index, &x0, &y0, &x1, &y1); + stbtt_GetGlyphBox(&self->info, glyph_index, &x0, NULL, NULL, &y1); glyph->advance_x = advance_width * self->scale_factor; glyph->atlas_offset_x = offset_x;