diff options
| author | Mario Kilies <MarioKilies@GMX.net> | 2011-01-27 23:19:46 +0100 |
|---|---|---|
| committer | Mario Kilies <MarioKilies@GMX.net> | 2011-01-27 23:19:46 +0100 |
| commit | 3bb9980d79f6b7b53a5352e0ac8351c6eb5c8c31 (patch) | |
| tree | 5e9772655d7df8f9f8df387d8d85bd3099a17d04 | |
| parent | e546f38c3e4668c1eed83e150f6296e1d6e6f640 (diff) | |
Main stack has now 104 cards again :>. Final scores window can now be closed with return and escape keys.
| -rw-r--r-- | src/main_stack.h | 2 | ||||
| -rw-r--r-- | src/ui.c | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/main_stack.h b/src/main_stack.h index a3ead88..aa2d420 100644 --- a/src/main_stack.h +++ b/src/main_stack.h @@ -4,7 +4,7 @@ #include <assert.h> #include "card.h" -#define MAX_MAIN_STACK_CARDS 24 +#define MAX_MAIN_STACK_CARDS 104 typedef struct { @@ -389,7 +389,11 @@ void ui_display_wnd_final_scores(const player_list_t *pl, const uint8_t num_play } wrefresh(w_final_scores); - while (KEY_RETURN != wgetch(w_final_scores)); + + int key; + do { + key = wgetch(w_final_scores); + } while (KEY_RETURN != key && KEY_ESCAPE != key); } uint8_t ui_choose_card(hand_t *h) |
