mirror of
https://gitlab.com/dosowisko.net/libsuperderpy.git
synced 2025-02-01 11:06:44 +01:00
check if fonts were actually loaded
This commit is contained in:
parent
bf83ae80a0
commit
9dcab1af04
1 changed files with 8 additions and 0 deletions
|
@ -303,7 +303,15 @@ int main(int argc, char **argv){
|
||||||
//al_set_new_bitmap_format(ALLEGRO_PIXEL_FORMAT_ANY_32_WITH_ALPHA);
|
//al_set_new_bitmap_format(ALLEGRO_PIXEL_FORMAT_ANY_32_WITH_ALPHA);
|
||||||
|
|
||||||
game.font = al_load_ttf_font("data/ShadowsIntoLight.ttf",al_get_display_height(game.display)*0.09,0 );
|
game.font = al_load_ttf_font("data/ShadowsIntoLight.ttf",al_get_display_height(game.display)*0.09,0 );
|
||||||
|
if(!game.font) {
|
||||||
|
fprintf(stderr, "failed to load game font!\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
game.font_console = al_load_ttf_font("data/DejaVuSansMono.ttf",al_get_display_height(game.display)*0.018,0 );
|
game.font_console = al_load_ttf_font("data/DejaVuSansMono.ttf",al_get_display_height(game.display)*0.018,0 );
|
||||||
|
if(!game.font_console) {
|
||||||
|
fprintf(stderr, "failed to load console font!\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
game.event_queue = al_create_event_queue();
|
game.event_queue = al_create_event_queue();
|
||||||
if(!game.event_queue) {
|
if(!game.event_queue) {
|
||||||
|
|
Loading…
Reference in a new issue