use game font for level names in the main menu

This commit is contained in:
Lephenixnoir 2022-06-25 18:26:14 +01:00
parent e22daeb3dd
commit ed748c4fe7
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,9 @@ int menu_level_select(int start)
int NAME_Y = cubic(DHEIGHT-24, DHEIGHT+10, transition_time,
TRANSITION_LEN);
extern font_t font_rogue;
font_t const *old_font = dfont(&font_rogue);
dclear(C_BLACK);
for(int i = 0; i < OPTION_COUNT; i++) {
@ -124,6 +127,7 @@ int menu_level_select(int start)
dsubimage(ARROW2_X, 93, &img_menu_arrows, 35, 0, 35, 42,
DIMAGE_NONE);
dfont(old_font);
dupdate();
for(int i = 0; i < OPTION_COUNT; i++)