lol i reversed them

This commit is contained in:
John Bintz 2024-07-17 07:40:48 -04:00
parent 7656a6c653
commit a73506a27b
2 changed files with 4 additions and 4 deletions

8
bun.c
View File

@ -106,7 +106,7 @@ void bun_offRightSide(
custom.bltcon0 = bltcon0; custom.bltcon0 = bltcon0;
custom.bltcon1 = bltcon1; custom.bltcon1 = bltcon1;
custom.bltapt = coolbunPlaneStarts[BUN_OFF_LEFT_SIDE][plane]; custom.bltapt = coolbunPlaneStarts[BUN_OFF_RIGHT_SIDE][plane];
custom.bltdpt = currentScreen->planes[plane] + custom.bltdpt = currentScreen->planes[plane] +
bunClear->memoryStartOffsetBytes; bunClear->memoryStartOffsetBytes;
@ -161,7 +161,7 @@ void bun_offLeftSide(
custom.bltcon1 = bltcon1; custom.bltcon1 = bltcon1;
// a has bun data // 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 // d is the part on screen
custom.bltdpt = currentScreen->planes[plane] + bunClear->memoryStartOffsetBytes; custom.bltdpt = currentScreen->planes[plane] + bunClear->memoryStartOffsetBytes;
@ -344,9 +344,9 @@ void precalculateBunRenderInfo(void) {
int plane; int plane;
for (plane = 0; plane < 2; ++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_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 + COOL_BUN_LAST_ROW_BYTES +
plane * COOL_BUN_PLANE_SIZE; plane * COOL_BUN_PLANE_SIZE;
} }

BIN
main

Binary file not shown.