| 1 | /** |
| 2 | * @file random_maps/expand2x.h |
| 3 | * Expands a layout by 2x in each dimension. |
| 4 | */ |
| 5 | |
| 6 | #ifndef _EXPAND2X_H |
| 7 | #define _EXPAND2X_H |
| 8 | |
| 9 | /* Expands a layout by 2x in each dimension. |
| 10 | * Resulting layout is actually (2*xsize-1)x(2*ysize-1). (Because of the cheesy |
| 11 | * algorithm, but hey, it works). |
| 12 | * |
| 13 | * Don't forget to free the old layout after this is called (it does not |
| 14 | * presume to do so itself). |
| 15 | */ |
| 16 | char **expand2x(char **layout, int xsize, int ysize); |
| 17 | |
| 18 | #endif |