Add possibility of selecting full stack by shift+M
This commit is contained in:
parent
2f110e9cc3
commit
e540b13a5d
@ -95,6 +95,18 @@ static void handle_card_movement(struct cursor *cursor) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'M':
|
||||||
|
if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) {
|
||||||
|
for (struct stack *i = *origin; i && i->next; i = i->next) {
|
||||||
|
while (i->next->card->face == EXPOSED &&
|
||||||
|
(i->card->frame->begin_y - i->next->card->frame->begin_y) > 1) {
|
||||||
|
erase_stack(*origin);
|
||||||
|
card_mark(i->next->card);
|
||||||
|
draw_stack(*origin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'n':
|
case 'n':
|
||||||
if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) {
|
if (origin == cursor_stack(cursor) && maneuvre_stack(*origin)) {
|
||||||
for (struct stack *i = (*origin)->next; i; i = i->next) {
|
for (struct stack *i = (*origin)->next; i; i = i->next) {
|
||||||
|
Loading…
Reference in New Issue
Block a user