From 929d04d073dad615dfe2a2c910a0ee10c27793a4 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 20 Apr 2018 20:18:39 +0200 Subject: [PATCH] added font definition for narrow variant of existing font --- src/conf_gfx.c | 2 ++ src/main.c | 1 + src/main.h | 21 +++++++++++---------- 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/conf_gfx.c b/src/conf_gfx.c index 4e1b54ba..2b4d4199 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -6627,6 +6627,8 @@ struct ConfigInfo image_config[] = { "font.value_old.y", "160" }, { "font.value_old.width", "32" }, { "font.value_old.height", "32" }, + { "font.value_old_narrow", UNDEFINED_FILENAME }, + { "font.value_old_narrow.clone_from", "font.text_2.LEVELS" }, { "font.value_narrow", UNDEFINED_FILENAME }, { "font.value_narrow.clone_from", "font.text_4.LEVELS" }, diff --git a/src/main.c b/src/main.c index 36cd516f..b46609a1 100644 --- a/src/main.c +++ b/src/main.c @@ -7483,6 +7483,7 @@ struct FontInfo font_info[NUM_FONTS + 1] = { "font.option_on" }, { "font.value_1" }, { "font.value_2" }, + { "font.value_old_narrow" }, { "font.value_old" }, { "font.value_narrow" }, { "font.level_number.active" }, diff --git a/src/main.h b/src/main.h index 77c26779..d688627d 100644 --- a/src/main.h +++ b/src/main.h @@ -2429,16 +2429,17 @@ #define FONT_OPTION_ON 30 #define FONT_VALUE_1 31 #define FONT_VALUE_2 32 -#define FONT_VALUE_OLD 33 -#define FONT_VALUE_NARROW 34 -#define FONT_LEVEL_NUMBER_ACTIVE 35 -#define FONT_LEVEL_NUMBER 36 -#define FONT_TAPE_RECORDER 37 -#define FONT_GAME_INFO 38 -#define FONT_INFO_ELEMENTS 39 -#define FONT_INFO_LEVELSET 40 - -#define NUM_FONTS 41 +#define FONT_VALUE_OLD_NARROW 33 +#define FONT_VALUE_OLD 34 +#define FONT_VALUE_NARROW 35 +#define FONT_LEVEL_NUMBER_ACTIVE 36 +#define FONT_LEVEL_NUMBER 37 +#define FONT_TAPE_RECORDER 38 +#define FONT_GAME_INFO 39 +#define FONT_INFO_ELEMENTS 40 +#define FONT_INFO_LEVELSET 41 + +#define NUM_FONTS 42 #define NUM_INITIAL_FONTS 4 /* values for toon animation configuration */ -- 2.34.1