From: Holger Schemel Date: Sun, 7 Jun 2020 23:03:01 +0000 (+0200) Subject: added explicit type for headline entries on setup menu screens X-Git-Tag: 4.2.0.0~22 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8a8de23c795a7564434a9838216c09e7be318bc6;p=rocksndiamonds.git added explicit type for headline entries on setup menu screens --- diff --git a/src/libgame/setup.h b/src/libgame/setup.h index a6058599..3af76ed5 100644 --- a/src/libgame/setup.h +++ b/src/libgame/setup.h @@ -42,15 +42,16 @@ #define TYPE_EMPTY (1 << 20) #define TYPE_SKIPPABLE (1 << 21) #define TYPE_KEYTEXT (1 << 22) +#define TYPE_HEADLINE (1 << 23) -#define TYPE_GHOSTED (1 << 23) -#define TYPE_QUERY (1 << 24) +#define TYPE_GHOSTED (1 << 24) +#define TYPE_QUERY (1 << 25) // additional values for internal purposes -#define TYPE_BITFIELD (1 << 25) -#define TYPE_CONTENT (1 << 26) -#define TYPE_ELEMENT_LIST (1 << 27) -#define TYPE_CONTENT_LIST (1 << 28) +#define TYPE_BITFIELD (1 << 26) +#define TYPE_CONTENT (1 << 27) +#define TYPE_ELEMENT_LIST (1 << 28) +#define TYPE_CONTENT_LIST (1 << 29) // derived values for setup file handling #define TYPE_BOOLEAN_STYLE (TYPE_BOOLEAN | \ @@ -74,6 +75,7 @@ TYPE_SKIPPABLE | \ TYPE_KEY | \ TYPE_STRING | \ + TYPE_HEADLINE | \ TYPE_GHOSTED) #define TYPE_ENTER (TYPE_ENTER_SCREEN | \ diff --git a/src/screens.c b/src/screens.c index a6d6612b..c492d48b 100644 --- a/src/screens.c +++ b/src/screens.c @@ -6279,11 +6279,11 @@ static struct TokenInfo setup_info_game[] = static struct TokenInfo setup_info_engines[] = { - { TYPE_EMPTY, NULL, "Emerald Mine" }, + { TYPE_HEADLINE, NULL, "Emerald Mine" }, { TYPE_SWITCH, &setup.forced_scroll_delay, "Scroll Delay:" }, { TYPE_ECS_AGA, &setup.prefer_aga_graphics,"EMC graphics preference:" }, { TYPE_EMPTY, NULL, "" }, - { TYPE_EMPTY, NULL, "Supaplex" }, + { TYPE_HEADLINE, NULL, "Supaplex" }, { TYPE_SWITCH, &setup.sp_show_border_elements,"Supaplex Border Elements:" }, { TYPE_EMPTY, NULL, "" }, { TYPE_LEAVE_MENU, execSetupMain, "Back" },