added missing option for menu draw offset for (empty) title info screen
authorHolger Schemel <info@artsoft.org>
Mon, 30 Oct 2017 09:50:25 +0000 (10:50 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:14 +0000 (23:21 +0100)
src/conf_gfx.c
src/screens.c

index 66b90650e6244252234e8e086cef7d447f38283b..152769ff8edad9999f51081db17796b52aacb256 100644 (file)
@@ -7705,6 +7705,8 @@ struct ConfigInfo image_config[] =
   { "menu.draw_yoffset.EDITOR",                        "0"                     },
   { "menu.draw_xoffset.INFO",                  "0"                     },
   { "menu.draw_yoffset.INFO",                  "0"                     },
+  { "menu.draw_xoffset.INFO[TITLE]",           "0"                     },
+  { "menu.draw_yoffset.INFO[TITLE]",           "0"                     },
   { "menu.draw_xoffset.INFO[ELEMENTS]",                "0"                     },
   { "menu.draw_yoffset.INFO[ELEMENTS]",                "0"                     },
   { "menu.draw_xoffset.INFO[MUSIC]",           "0"                     },
index c35cd84d6a442a71a92426108dde44d6f14e9fef..2114c845d7506666153521d8485c88a789024e65 100644 (file)
@@ -421,7 +421,7 @@ static struct
                                 GAME_MODE_MAIN : GAME_MODE_DEFAULT)
 
 /* (there are no draw offset definitions needed for INFO_MODE_TITLE) */
-#define DRAW_MODE_INFO(i)      ((i) >= INFO_MODE_ELEMENTS &&           \
+#define DRAW_MODE_INFO(i)      ((i) >= INFO_MODE_TITLE &&              \
                                 (i) <= INFO_MODE_LEVELSET ? (i) :      \
                                 INFO_MODE_MAIN)