summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMario Kilies <MarioKilies@GMX.net>2011-01-27 23:19:46 +0100
committerMario Kilies <MarioKilies@GMX.net>2011-01-27 23:19:46 +0100
commit3bb9980d79f6b7b53a5352e0ac8351c6eb5c8c31 (patch)
tree5e9772655d7df8f9f8df387d8d85bd3099a17d04 /src
parente546f38c3e4668c1eed83e150f6296e1d6e6f640 (diff)
Main stack has now 104 cards again :>. Final scores window can now be closed with return and escape keys.
Diffstat (limited to 'src')
-rw-r--r--src/main_stack.h2
-rw-r--r--src/ui.c6
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
{
diff --git a/src/ui.c b/src/ui.c
index e6c0d63..04938c5 100644
--- a/src/ui.c
+++ b/src/ui.c
@@ -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)