+ overlay.show_grid = FALSE;
+ overlay.show_grid_buttons = FALSE;
+
+ overlay.grid_xsize = DEFAULT_GRID_XSIZE;
+ overlay.grid_ysize = DEFAULT_GRID_YSIZE;
+
+ for (x = 0; x < MAX_GRID_XSIZE; x++)
+ for (y = 0; y < MAX_GRID_YSIZE; y++)
+ overlay.grid_button[x][y] = CHAR_GRID_BUTTON_NONE;
+
+ for (x = 0; x < min_xsize; x++)
+ for (y = 0; y < min_ysize; y++)
+ overlay.grid_button[x][starty + y] =
+ default_grid_button[y][0][x];
+
+ for (x = 0; x < min_xsize; x++)
+ for (y = 0; y < min_ysize; y++)
+ overlay.grid_button[startx + x][starty + y] =
+ default_grid_button[y][1][x];
+
+ overlay.grid_button_highlight = CHAR_GRID_BUTTON_NONE;
+