mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
gfx_display_font_file - cleanup
This commit is contained in:
parent
d08a3b2310
commit
48a2e0528d
@ -629,7 +629,8 @@ font_data_t *gfx_display_font_file(
|
||||
/* Font size must be at least 2, or font_init_first()
|
||||
* will generate a heap-buffer-overflow when using
|
||||
* many font drivers */
|
||||
font_size = (font_size > 2.0f) ? font_size : 2.0f;
|
||||
if (font_size < 2.0f)
|
||||
font_size = 2.0f;
|
||||
|
||||
if (!dispctx->font_init_first((void**)&font_data,
|
||||
video_driver_get_ptr(false),
|
||||
|
Loading…
x
Reference in New Issue
Block a user