Removed GUI related code from card code.

This commit is contained in:
Murilo Soares Pereira 2010-04-03 01:20:49 -03:00
parent 7c4c16e705
commit 8960ae7f84
2 changed files with 1 additions and 7 deletions

View File

@ -1,7 +1,7 @@
#include <ncurses.h> #include <ncurses.h>
#include <malloc.h> #include <malloc.h>
#include "card.h"
#include "frame.h" #include "frame.h"
#include "card.h"
#include "../src/common.h" #include "../src/common.h"
struct card *initialize_card() { struct card *initialize_card() {
@ -37,8 +37,3 @@ void set_card(struct card *card,
return; return;
} }
void refresh_card(struct card *card) {
box(card->frame->shape, 0, 0);
wrefresh(card->frame->shape);
}

View File

@ -42,6 +42,5 @@ struct card {
struct card *initialize_card(); struct card *initialize_card();
void delete_card(struct card *); void delete_card(struct card *);
void set_card(struct card *, enum value, enum suit, enum face, int, int); void set_card(struct card *, enum value, enum suit, enum face, int, int);
void refresh_card(struct card *);
#endif #endif