diff options
| author | Jonas Kölker <jonaskoelker@yahoo.com> | 2015-10-02 18:23:44 +0200 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-10-03 17:12:20 +0100 |
| commit | b94be41445d1ed056882c15795f01a6861fc184b (patch) | |
| tree | 66e48e90429877df4e97b312fcc22467bf9cf03b /filling.c | |
| parent | 47bc27b0c228fbbac5be8547e4aa6bb58767a75e (diff) | |
| download | puzzles-b94be41445d1ed056882c15795f01a6861fc184b.zip puzzles-b94be41445d1ed056882c15795f01a6861fc184b.tar.gz puzzles-b94be41445d1ed056882c15795f01a6861fc184b.tar.bz2 puzzles-b94be41445d1ed056882c15795f01a6861fc184b.tar.xz | |
Render Filling presets as 'WxH', not 'HxW'.
Diffstat (limited to 'filling.c')
| -rw-r--r-- | filling.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -91,7 +91,7 @@ static void printv(char *fmt, ...) { *****************************************************************************/ struct game_params { - int h, w; + int w, h; }; struct shared_state { @@ -106,7 +106,9 @@ struct game_state { int completed, cheated; }; -static const struct game_params filling_defaults[3] = {{7, 9}, {9, 13}, {13, 17}}; +static const struct game_params filling_defaults[3] = { + {9, 7}, {13, 9}, {17, 13} +}; static game_params *default_params(void) { @@ -124,7 +126,7 @@ static int game_fetch_preset(int i, char **name, game_params **params) if (i < 0 || i >= lenof(filling_defaults)) return FALSE; *params = snew(game_params); **params = filling_defaults[i]; /* struct copy */ - sprintf(buf, "%dx%d", filling_defaults[i].h, filling_defaults[i].w); + sprintf(buf, "%dx%d", filling_defaults[i].w, filling_defaults[i].h); *name = dupstr(buf); return TRUE; |