ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit 9df67d1a25927b08e82c8872b01b07a99213ee0c
parent 11d81a1efabd26441df0e55dfa7838f15851af5f
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Sat,  7 Oct 2023 14:47:31 +0200

ALT+F4 (Copy Block) fix

Diffstat:
Msrc/ft2_edit.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ft2_edit.c b/src/ft2_edit.c @@ -1577,7 +1577,7 @@ void copyBlock(void) note_t *p = pattern[curPattern]; if (p != NULL && markY1 >= 0 && markX1 >= 0 && markX2 >= 0 && markY2 >= 0) { - for (int32_t x = markX1; x < markX2; x++) + for (int32_t x = markX1; x <= markX2; x++) { for (int32_t y = markY1; y < markY2; y++) copyNote(&p[(y * MAX_CHANNELS) + x], &blkCopyBuff[((y - markY1) * MAX_CHANNELS) + (x - markX1)]);