Formatting.

This commit is contained in:
Murilo Pereira 2011-02-14 00:24:19 -02:00
parent 417a8ca2b7
commit 3495e08490

View File

@ -119,17 +119,17 @@ void draw_empty_stacks() {
MANEUVRE_STARTING_Y, MANEUVRE_STARTING_Y,
MANEUVRE_3_STARTING_X); MANEUVRE_3_STARTING_X);
empty_stack[10] = newwin(FRAME_HEIGHT, empty_stack[10] = newwin(FRAME_HEIGHT,
FRAME_WIDTH, FRAME_WIDTH,
MANEUVRE_STARTING_Y, MANEUVRE_STARTING_Y,
MANEUVRE_4_STARTING_X); MANEUVRE_4_STARTING_X);
empty_stack[11] = newwin(FRAME_HEIGHT, empty_stack[11] = newwin(FRAME_HEIGHT,
FRAME_WIDTH, FRAME_WIDTH,
MANEUVRE_STARTING_Y, MANEUVRE_STARTING_Y,
MANEUVRE_5_STARTING_X); MANEUVRE_5_STARTING_X);
empty_stack[12] = newwin(FRAME_HEIGHT, empty_stack[12] = newwin(FRAME_HEIGHT,
FRAME_WIDTH, FRAME_WIDTH,
MANEUVRE_STARTING_Y, MANEUVRE_STARTING_Y,
MANEUVRE_6_STARTING_X); MANEUVRE_6_STARTING_X);
for (int i = 0; i < EMPTY_STACKS_NUMBER; i++) { for (int i = 0; i < EMPTY_STACKS_NUMBER; i++) {
box(empty_stack[i], 0, 0); box(empty_stack[i], 0, 0);
@ -144,8 +144,10 @@ void draw_empty_stacks() {
void draw_value(struct card *card) { void draw_value(struct card *card) {
mvwprintw(card->frame->shape, 0, 0, card_value(card->value)); mvwprintw(card->frame->shape, 0, 0, card_value(card->value));
mvwprintw(card->frame->shape, 4, mvwprintw(card->frame->shape,
6 - (strlen(card_value(card->value)) - 1), card_value(card->value)); 4,
6 - (strlen(card_value(card->value)) - 1),
card_value(card->value));
return; return;
} }