Merge pull request #68 from lrprince/maneuvre-drawing-bugfix
Fix drawing bug on maneuvre stacks
This commit is contained in:
commit
9c7212cae0
14
src/cursor.c
14
src/cursor.c
@ -50,25 +50,25 @@ void cursor_move(struct cursor *cursor, enum movement movement) {
|
||||
if (cursor->y == CURSOR_BEGIN_Y) {
|
||||
switch (cursor->x - 3) {
|
||||
case MANEUVRE_0_BEGIN_X:
|
||||
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[0]);
|
||||
cursor->y = 6 + deck->maneuvre[0]->card->frame->begin_y;
|
||||
break;
|
||||
case MANEUVRE_1_BEGIN_X:
|
||||
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[1]);
|
||||
cursor->y = 6 + deck->maneuvre[1]->card->frame->begin_y;
|
||||
break;
|
||||
case MANEUVRE_2_BEGIN_X:
|
||||
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[2]);
|
||||
cursor->y = 6 + deck->maneuvre[2]->card->frame->begin_y;
|
||||
break;
|
||||
case MANEUVRE_3_BEGIN_X:
|
||||
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[3]);
|
||||
cursor->y = 6 + deck->maneuvre[3]->card->frame->begin_y;
|
||||
break;
|
||||
case MANEUVRE_4_BEGIN_X:
|
||||
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[4]);
|
||||
cursor->y = 6 + deck->maneuvre[4]->card->frame->begin_y;
|
||||
break;
|
||||
case MANEUVRE_5_BEGIN_X:
|
||||
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[5]);
|
||||
cursor->y = 6 + deck->maneuvre[5]->card->frame->begin_y;
|
||||
break;
|
||||
case MANEUVRE_6_BEGIN_X:
|
||||
cursor->y = cursor->y + 7 + stack_length(deck->maneuvre[6]);
|
||||
cursor->y = 6 + deck->maneuvre[6]->card->frame->begin_y;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user