diff --git a/bun.c b/bun.c index 0a81139..7028730 100644 --- a/bun.c +++ b/bun.c @@ -106,7 +106,7 @@ void bun_offRightSide( custom.bltcon0 = bltcon0; custom.bltcon1 = bltcon1; - custom.bltapt = coolbunPlaneStarts[BUN_OFF_LEFT_SIDE][plane]; + custom.bltapt = coolbunPlaneStarts[BUN_OFF_RIGHT_SIDE][plane]; custom.bltdpt = currentScreen->planes[plane] + bunClear->memoryStartOffsetBytes; @@ -161,7 +161,7 @@ void bun_offLeftSide( custom.bltcon1 = bltcon1; // a has bun data - custom.bltapt = coolbunPlaneStarts[BUN_OFF_RIGHT_SIDE][plane]; + custom.bltapt = coolbunPlaneStarts[BUN_OFF_LEFT_SIDE][plane]; // d is the part on screen custom.bltdpt = currentScreen->planes[plane] + bunClear->memoryStartOffsetBytes; @@ -344,9 +344,9 @@ void precalculateBunRenderInfo(void) { int plane; for (plane = 0; plane < 2; ++plane) { - coolbunPlaneStarts[BUN_OFF_LEFT_SIDE][plane] = coolbun + plane * COOL_BUN_PLANE_SIZE; + coolbunPlaneStarts[BUN_OFF_RIGHT_SIDE][plane] = coolbun + plane * COOL_BUN_PLANE_SIZE; coolbunPlaneStarts[BUN_ANYWHERE][plane] = coolbun + plane * COOL_BUN_PLANE_SIZE; - coolbunPlaneStarts[BUN_OFF_RIGHT_SIDE][plane] = coolbun + 2 + + coolbunPlaneStarts[BUN_OFF_LEFT_SIDE][plane] = coolbun + 2 + COOL_BUN_LAST_ROW_BYTES + plane * COOL_BUN_PLANE_SIZE; } diff --git a/main b/main index 7f0ca0d..46b7597 100755 Binary files a/main and b/main differ