I don't need two input channels for this
This commit is contained in:
parent
22a0359536
commit
6aed100cd2
11
bun.c
11
bun.c
|
@ -191,7 +191,7 @@ void bun_anywhere(
|
||||||
uint8_t plane;
|
uint8_t plane;
|
||||||
uint8_t shift = x & 15;
|
uint8_t shift = x & 15;
|
||||||
uint8_t needsExtraWord = shift != 0;
|
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);
|
bunClear->memoryStartOffsetBytes = WORD_ALIGNED_BYTE_POSITION(screenSetup->width, x, y);
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ void bun_anywhere(
|
||||||
bunClear->direction = BLITTER_ASCENDING;
|
bunClear->direction = BLITTER_ASCENDING;
|
||||||
|
|
||||||
// buns will never interfere with a background so they don't need a mask
|
// 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);
|
bltcon1 = BLTCON1(bunClear->direction, shift);
|
||||||
|
|
||||||
if (needsExtraWord) {
|
if (needsExtraWord) {
|
||||||
|
@ -209,7 +209,7 @@ void bun_anywhere(
|
||||||
bltalwm = 0xffff;
|
bltalwm = 0xffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
bltbmod = -(needsExtraWord * 2);
|
bltamod = -(needsExtraWord * 2);
|
||||||
bltdmod = screenSetup->byteWidth - COOL_BUN_WIDTH_BYTES - (needsExtraWord * 2);
|
bltdmod = screenSetup->byteWidth - COOL_BUN_WIDTH_BYTES - (needsExtraWord * 2);
|
||||||
bltsize = bunClear->widthWords + (bunClear->heightRows << 6);
|
bltsize = bunClear->widthWords + (bunClear->heightRows << 6);
|
||||||
|
|
||||||
|
@ -217,8 +217,7 @@ void bun_anywhere(
|
||||||
custom.bltcon0 = bltcon0;
|
custom.bltcon0 = bltcon0;
|
||||||
custom.bltcon1 = bltcon1;
|
custom.bltcon1 = bltcon1;
|
||||||
|
|
||||||
custom.bltadat = 0xffff;
|
custom.bltapt = coolbunPlaneStarts[BUN_ANYWHERE][plane];
|
||||||
custom.bltbpt = coolbunPlaneStarts[BUN_ANYWHERE][plane];
|
|
||||||
custom.bltdpt = currentScreen->planes[plane] +
|
custom.bltdpt = currentScreen->planes[plane] +
|
||||||
bunClear->memoryStartOffsetBytes;
|
bunClear->memoryStartOffsetBytes;
|
||||||
|
|
||||||
|
@ -226,7 +225,7 @@ void bun_anywhere(
|
||||||
custom.bltafwm = 0xffff;
|
custom.bltafwm = 0xffff;
|
||||||
custom.bltalwm = bltalwm;
|
custom.bltalwm = bltalwm;
|
||||||
|
|
||||||
custom.bltbmod = bltbmod;
|
custom.bltamod = bltamod;
|
||||||
custom.bltdmod = bltdmod;
|
custom.bltdmod = bltdmod;
|
||||||
custom.bltsize = bltsize;
|
custom.bltsize = bltsize;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue