- overlay.show_grid_buttons = FALSE;
-
- for (i = 0; i < 2; i++)
- {
- int grid_xsize = DEFAULT_GRID_XSIZE(i);
- int grid_ysize = DEFAULT_GRID_YSIZE(i);
- int min_xsize = MIN(6, grid_xsize);
- int min_ysize = MIN(6, grid_ysize);
- int startx = grid_xsize - min_xsize;
- int starty = grid_ysize - min_ysize;
-
- overlay.grid_xsize_all[i] = grid_xsize;
- overlay.grid_ysize_all[i] = grid_ysize;
-
- for (x = 0; x < MAX_GRID_XSIZE; x++)
- for (y = 0; y < MAX_GRID_YSIZE; y++)
- overlay.grid_button_all[i][x][y] = CHAR_GRID_BUTTON_NONE;
-
- for (x = 0; x < min_xsize; x++)
- for (y = 0; y < min_ysize; y++)
- overlay.grid_button_all[i][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_all[i][startx + x][starty + y] =
- default_grid_button[y][1][x];
- }