added option to draw virtual buttons outlined
[rocksndiamonds.git] / src / files.c
index c7408331e2fe1c04b9783780336023a6c7e686b1..e59d36214e622edc7d0a71b4408643c5b5ddc874 100644 (file)
@@ -8306,12 +8306,13 @@ void SaveScore(int nr)
 #define SETUP_TOKEN_TOUCH_MOVE_DISTANCE                42
 #define SETUP_TOKEN_TOUCH_DROP_DISTANCE                43
 #define SETUP_TOKEN_TOUCH_TRANSPARENCY         44
-#define SETUP_TOKEN_TOUCH_GRID_XSIZE_0         45
-#define SETUP_TOKEN_TOUCH_GRID_YSIZE_0         46
-#define SETUP_TOKEN_TOUCH_GRID_XSIZE_1         47
-#define SETUP_TOKEN_TOUCH_GRID_YSIZE_1         48
+#define SETUP_TOKEN_TOUCH_DRAW_OUTLINED                45
+#define SETUP_TOKEN_TOUCH_GRID_XSIZE_0         46
+#define SETUP_TOKEN_TOUCH_GRID_YSIZE_0         47
+#define SETUP_TOKEN_TOUCH_GRID_XSIZE_1         48
+#define SETUP_TOKEN_TOUCH_GRID_YSIZE_1         49
 
-#define NUM_GLOBAL_SETUP_TOKENS                        49
+#define NUM_GLOBAL_SETUP_TOKENS                        50
 
 /* auto setup */
 #define SETUP_TOKEN_AUTO_EDITOR_ZOOM_TILESIZE  0
@@ -8513,6 +8514,7 @@ static struct TokenInfo global_setup_tokens[] =
   { TYPE_INTEGER,&si.touch.move_distance,     "touch.move_distance"    },
   { TYPE_INTEGER,&si.touch.drop_distance,     "touch.drop_distance"    },
   { TYPE_INTEGER,&si.touch.transparency,      "touch.transparency"     },
+  { TYPE_INTEGER,&si.touch.draw_outlined,     "touch.draw_outlined"    },
   { TYPE_INTEGER,&si.touch.grid_xsize[0],     "touch.virtual_buttons.0.xsize" },
   { TYPE_INTEGER,&si.touch.grid_ysize[0],     "touch.virtual_buttons.0.ysize" },
   { TYPE_INTEGER,&si.touch.grid_xsize[1],     "touch.virtual_buttons.1.xsize" },
@@ -8731,6 +8733,7 @@ static void setSetupInfoToDefaults(struct SetupInfo *si)
   si->touch.move_distance = TOUCH_MOVE_DISTANCE_DEFAULT;       /* percent */
   si->touch.drop_distance = TOUCH_DROP_DISTANCE_DEFAULT;       /* percent */
   si->touch.transparency = TOUCH_TRANSPARENCY_DEFAULT;         /* percent */
+  si->touch.draw_outlined = TRUE;
 
   for (i = 0; i < 2; i++)
   {