I don't need two input channels for this

This commit is contained in:
John Bintz 2024-07-16 08:02:38 -04:00
parent 22a0359536
commit 6aed100cd2
1 changed files with 5 additions and 6 deletions

11
bun.c
View File

@ -191,7 +191,7 @@ void bun_anywhere(
uint8_t plane;
uint8_t shift = x & 15;
uint8_t needsExtraWord = shift != 0;
uint16_t bltcon0, bltcon1, bltalwm, bltbmod, bltdmod, bltsize;
uint16_t bltcon0, bltcon1, bltalwm, bltamod, bltdmod, bltsize;
bunClear->memoryStartOffsetBytes = WORD_ALIGNED_BYTE_POSITION(screenSetup->width, x, y);
@ -200,7 +200,7 @@ void bun_anywhere(
bunClear->direction = BLITTER_ASCENDING;
// buns will never interfere with a background so they don't need a mask
bltcon0 = BLTCON0(0xc0, 0, 1, 0, 1, shift);
bltcon0 = BLTCON0(0xf0, 1, 0, 0, 1, shift);
bltcon1 = BLTCON1(bunClear->direction, shift);
if (needsExtraWord) {
@ -209,7 +209,7 @@ void bun_anywhere(
bltalwm = 0xffff;
}
bltbmod = -(needsExtraWord * 2);
bltamod = -(needsExtraWord * 2);
bltdmod = screenSetup->byteWidth - COOL_BUN_WIDTH_BYTES - (needsExtraWord * 2);
bltsize = bunClear->widthWords + (bunClear->heightRows << 6);
@ -217,8 +217,7 @@ void bun_anywhere(
custom.bltcon0 = bltcon0;
custom.bltcon1 = bltcon1;
custom.bltadat = 0xffff;
custom.bltbpt = coolbunPlaneStarts[BUN_ANYWHERE][plane];
custom.bltapt = coolbunPlaneStarts[BUN_ANYWHERE][plane];
custom.bltdpt = currentScreen->planes[plane] +
bunClear->memoryStartOffsetBytes;
@ -226,7 +225,7 @@ void bun_anywhere(
custom.bltafwm = 0xffff;
custom.bltalwm = bltalwm;
custom.bltbmod = bltbmod;
custom.bltamod = bltamod;
custom.bltdmod = bltdmod;
custom.bltsize = bltsize;