Moving cursor declaration to the game file.

* Also moving some functions around.
This commit is contained in:
Murilo Pereira
2011-02-06 00:15:21 -02:00
parent 58fff35a20
commit a8c98d4756
4 changed files with 18 additions and 20 deletions

View File

@@ -5,10 +5,10 @@
#include "../lib/keyboard.h"
extern struct deck *deck;
extern struct cursor *cursor;
int main(int argc, const char *argv[]) {
int option;
struct cursor *cursor;
initialize_curses();
@@ -21,15 +21,12 @@ int main(int argc, const char *argv[]) {
break;
case 'q':
case 'Q':
end_game();
end_curses();
exit(0);
}
}
allocate_cursor(&cursor);
initialize_cursor(cursor);
draw_cursor(cursor);
while (1) {
switch (option = getch()) {
case 'h':