mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-31 14:04:21 +00:00
Make stb font_size similar to our other font renderers. Fixes #2047
This commit is contained in:
parent
6b1a9f0852
commit
ecc49c84a8
@ -137,6 +137,9 @@ static void *font_renderer_stb_init(const char *font_path, float font_size)
|
||||
stbtt_fontinfo info;
|
||||
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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user