X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fconf_gfx.c;h=d6aff2313eeca0b3984d7d9ff480e77da850d1bb;hb=69811dad502415dbda5610aef1d3ee303645baab;hp=0a6beead20fd0fa68f11ca1f87e6a3bf39777b07;hpb=811097f2a67a8f8002672cb777619893b83ca106;p=rocksndiamonds.git diff --git a/src/conf_gfx.c b/src/conf_gfx.c index 0a6beead..d6aff231 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -15,6 +15,10 @@ #include "main.h" +/* List values that are not defined in the configuration file are set to + reliable default values. If that value is GFX_ARG_UNDEFINED, it will + be dynamically determined, using some of the other list values. */ + struct ConfigInfo image_config_suffix[] = { { ".xpos", "0", TYPE_INTEGER }, @@ -23,7 +27,7 @@ struct ConfigInfo image_config_suffix[] = { ".vertical", "false", TYPE_BOOLEAN }, { ".xoffset", GFX_ARG_UNDEFINED, TYPE_INTEGER }, { ".yoffset", GFX_ARG_UNDEFINED, TYPE_INTEGER }, - { ".frames", "1", TYPE_INTEGER }, + { ".frames", GFX_ARG_UNDEFINED, TYPE_INTEGER }, { ".start_frame", GFX_ARG_UNDEFINED, TYPE_INTEGER }, { ".delay", "1", TYPE_INTEGER }, { ".mode_loop", "false", TYPE_BOOLEAN },