Soft'N'Design Software
/
projects
/
snake.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd95d97
)
correct board
author
Laurent Mazet
<mazet@softndesign.org>
Thu, 29 Aug 2024 21:47:12 +0000
(23:47 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Thu, 29 Aug 2024 21:47:12 +0000
(23:47 +0200)
function.c
patch
|
blob
|
blame
|
history
diff --git
a/function.c
b/function.c
index db07934a3d2595eebca0ad6168fb2d926d76c6b0..01214384beca67ee7b2a25ac578eae52654940e5 100644
(file)
--- a/
function.c
+++ b/
function.c
@@
-49,15
+49,20
@@
board_t *applyscale (board_t *board, int scale)
break;
case 1:
board->width = board->xsize / 2;
+ board->xsize = board->width * 2;
board->height = board->ysize;
break;
case 2:
board->width = board->xsize / 2;
+ board->xsize = board->width * 2;
board->height = board->ysize / 2;
+ board->ysize = board->height * 2;
break;
case 3:
board->width = board->xsize / 3;
+ board->xsize = board->width * 3;
board->height = board->ysize / 2;
+ board->ysize = board->height * 2;
break;
}
return board;