From 8bd7147a8ebe635c67fb826bd79f2f0d08cc30f2 Mon Sep 17 00:00:00 2001 From: Murilo Pereira Date: Sun, 6 Feb 2011 00:22:16 -0200 Subject: [PATCH] 'draw_deck' is more consistent. --- lib/cursor.c | 2 +- lib/display.c | 2 +- lib/display.h | 2 +- lib/game.c | 2 +- src/tty-solitaire.c | 1 - 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/cursor.c b/lib/cursor.c index d6a34cf..6a9bc2a 100644 --- a/lib/cursor.c +++ b/lib/cursor.c @@ -94,7 +94,7 @@ void move_cursor(struct cursor *cursor, enum movement movement) { /* this is needed because of the screen glitch that moving the cursor * on the maneuvre's stacks causes */ refresh(); - draw_game(deck); + draw_deck(deck); return; } diff --git a/lib/display.c b/lib/display.c index fb09c23..ce1c795 100644 --- a/lib/display.c +++ b/lib/display.c @@ -197,7 +197,7 @@ void draw_stack(struct stack *stack) { return; } -void draw_game(struct deck *deck) { +void draw_deck(struct deck *deck) { draw_stack(deck->stock); draw_stack(deck->waste_pile); diff --git a/lib/display.h b/lib/display.h index 2267836..9c801d2 100644 --- a/lib/display.h +++ b/lib/display.h @@ -25,6 +25,6 @@ void draw_front(struct card *); void draw_back(struct card *); void draw_card(struct card *); void draw_stack(struct stack *); -void draw_game(struct deck *); +void draw_deck(struct deck *); #endif diff --git a/lib/game.c b/lib/game.c index 91b2409..19bffbd 100644 --- a/lib/game.c +++ b/lib/game.c @@ -211,7 +211,7 @@ void initialize_game() { draw_empty_stacks(); draw_cursor(cursor); - draw_game(deck); + draw_deck(deck); return; } diff --git a/src/tty-solitaire.c b/src/tty-solitaire.c index ca368db..d080183 100644 --- a/src/tty-solitaire.c +++ b/src/tty-solitaire.c @@ -11,7 +11,6 @@ int main(int argc, const char *argv[]) { int option; initialize_curses(); - greet_player(); while (option != KEY_SPACEBAR) {