added new graphics config parameter ".color_template" (not used yet)
authorHolger Schemel <holger.schemel@virtion.de>
Thu, 3 Oct 2024 08:50:39 +0000 (10:50 +0200)
committerHolger Schemel <holger.schemel@virtion.de>
Thu, 3 Oct 2024 08:50:59 +0000 (10:50 +0200)
src/conf_gfx.c
src/init.c
src/main.h

index 37edabc4c69c97670c305d02b3480a7bc8aa363d..cf373278438b17a24f99ef09884d53b5b2ef0248 100644 (file)
@@ -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                       }
 };
index c71008f96c6b4182460000fc75aff695c2fadca8..0cfe53b3cecc12617a3d192dbce5a688db82ef78 100644 (file)
@@ -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)
index 36096060b661bdef9bf1be9c9a9e6b6ac59e1b92..129373f6751ee4965cc82adfb00cb3db5a008f22 100644 (file)
@@ -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
 };