From a73f10f1246248a039eb222946f028f72f7854da Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 23 Sep 2015 14:02:38 +0200 Subject: [PATCH] (MSVC) Buildfix --- gfx/drivers_font_renderer/stb.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gfx/drivers_font_renderer/stb.c b/gfx/drivers_font_renderer/stb.c index ab17657c57..48e72e93c4 100644 --- a/gfx/drivers_font_renderer/stb.c +++ b/gfx/drivers_font_renderer/stb.c @@ -132,17 +132,14 @@ error: static void *font_renderer_stb_init(const char *font_path, float font_size) { - uint8_t *font_data = NULL; int ascent, descent, line_gap; stbtt_fontinfo info; + uint8_t *font_data = NULL; stb_font_renderer_t *self = (stb_font_renderer_t*) calloc(1, sizeof(*self)); /* See https://github.com/nothings/stb/blob/master/stb_truetype.h#L539 */ font_size = STBTT_POINT_SIZE(font_size); - /* prevent warnings */ - (void)rect_width_compare; - if (!self) goto error;