lol i reversed them
This commit is contained in:
parent
7656a6c653
commit
a73506a27b
8
bun.c
8
bun.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue