File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -360,24 +360,24 @@ int vui_init_sdl(vui_context_t *ctx, int fullscreen)
360
360
return -1 ;
361
361
}
362
362
363
- char font_filename [128 ];
363
+ char font_filename [4096 ];
364
364
vpi_asset_filename (font_filename , sizeof (font_filename ), "font" , "system.ttf" );
365
365
366
366
sdl_ctx -> sysfont = TTF_OpenFont (font_filename , 36 );
367
367
if (!sdl_ctx -> sysfont ) {
368
- vpilog ("Failed to TTF_OpenFont\n" );
368
+ vpilog ("Failed to TTF_OpenFont: %s \n" , font_filename );
369
369
return -1 ;
370
370
}
371
371
372
372
sdl_ctx -> sysfont_small = TTF_OpenFont (font_filename , 24 );
373
373
if (!sdl_ctx -> sysfont_small ) {
374
- vpilog ("Failed to TTF_OpenFont\n" );
374
+ vpilog ("Failed to TTF_OpenFont: %s \n" , font_filename );
375
375
return -1 ;
376
376
}
377
377
378
378
sdl_ctx -> sysfont_tiny = TTF_OpenFont (font_filename , 16 );
379
379
if (!sdl_ctx -> sysfont_tiny ) {
380
- vpilog ("Failed to TTF_OpenFont\n" );
380
+ vpilog ("Failed to TTF_OpenFont: %s \n" , font_filename );
381
381
return -1 ;
382
382
}
383
383
You can’t perform that action at this time.
0 commit comments