mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
(MSVC) Buildfix
This commit is contained in:
parent
de30940079
commit
a73f10f124
@ -132,17 +132,14 @@ error:
|
|||||||
|
|
||||||
static void *font_renderer_stb_init(const char *font_path, float font_size)
|
static void *font_renderer_stb_init(const char *font_path, float font_size)
|
||||||
{
|
{
|
||||||
uint8_t *font_data = NULL;
|
|
||||||
int ascent, descent, line_gap;
|
int ascent, descent, line_gap;
|
||||||
stbtt_fontinfo info;
|
stbtt_fontinfo info;
|
||||||
|
uint8_t *font_data = NULL;
|
||||||
stb_font_renderer_t *self = (stb_font_renderer_t*) calloc(1, sizeof(*self));
|
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 */
|
/* See https://github.com/nothings/stb/blob/master/stb_truetype.h#L539 */
|
||||||
font_size = STBTT_POINT_SIZE(font_size);
|
font_size = STBTT_POINT_SIZE(font_size);
|
||||||
|
|
||||||
/* prevent warnings */
|
|
||||||
(void)rect_width_compare;
|
|
||||||
|
|
||||||
if (!self)
|
if (!self)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user