From: Holger Schemel Date: Thu, 3 Oct 2024 08:50:39 +0000 (+0200) Subject: added new graphics config parameter ".color_template" (not used yet) X-Git-Tag: 4.4.0.0-test-4~183 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=9e68d203198be6c90bbe1b34c8abfc9077e587dd;p=rocksndiamonds.git added new graphics config parameter ".color_template" (not used yet) --- diff --git a/src/conf_gfx.c b/src/conf_gfx.c index 37edabc4..cf373278 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -91,6 +91,7 @@ struct ConfigTypeInfo image_config_suffix[] = { ".stacked_yfactor", "1", TYPE_INTEGER }, { ".stacked_xoffset", "0", TYPE_INTEGER }, { ".stacked_yoffset", "0", TYPE_INTEGER }, + { ".color_template", "false", TYPE_BOOLEAN }, { NULL, NULL, 0 } }; diff --git a/src/init.c b/src/init.c index c71008f9..0cfe53b3 100644 --- a/src/init.c +++ b/src/init.c @@ -1726,6 +1726,9 @@ static void set_graphic_parameters_ext(int graphic, int *parameter, g->stacked_yfactor = parameter[GFX_ARG_STACKED_YFACTOR]; g->stacked_xoffset = parameter[GFX_ARG_STACKED_XOFFSET]; g->stacked_yoffset = parameter[GFX_ARG_STACKED_YOFFSET]; + + // this is only used for optional color template images + g->color_template = parameter[GFX_ARG_COLOR_TEMPLATE]; } static void set_graphic_parameters(int graphic) diff --git a/src/main.h b/src/main.h index 36096060..129373f6 100644 --- a/src/main.h +++ b/src/main.h @@ -2963,6 +2963,7 @@ enum GFX_ARG_STACKED_YFACTOR, GFX_ARG_STACKED_XOFFSET, GFX_ARG_STACKED_YOFFSET, + GFX_ARG_COLOR_TEMPLATE, NUM_GFX_ARGS }; @@ -4337,6 +4338,8 @@ struct GraphicInfo int stacked_xoffset; int stacked_yoffset; + boolean color_template; // optional setting for color template images + boolean use_image_size; // use image size as default width and height };