amiga/amiga_v: don't run copper cycles for ephemeral out of beam phase

This commit is contained in:
angelosa 2025-01-01 12:39:59 +01:00
parent e750893311
commit 41eb43ca97
2 changed files with 2 additions and 2 deletions

View File

@ -554,7 +554,7 @@ void amiga_state::render_scanline(bitmap_rgb32 &bitmap, int scanline)
const bool out_of_beam = x >= amiga_state::SCREEN_WIDTH / 2;
/* time to execute the copper? */
if (x == next_copper_x)
if (x == next_copper_x && !out_of_beam)
{
/* execute the next batch, restoring and re-saving color 0 around it */
CUSTOM_REG(REG_COLOR00) = save_color0;

View File

@ -551,7 +551,7 @@ void amiga_state::aga_render_scanline(bitmap_rgb32 &bitmap, int scanline)
const bool out_of_beam = x >= amiga_state::SCREEN_WIDTH / 2;
/* time to execute the copper? */
if (x == next_copper_x)
if (x == next_copper_x && !out_of_beam)
{
planes = (CUSTOM_REG(REG_BPLCON0) & (BPLCON0_BPU0 | BPLCON0_BPU1 | BPLCON0_BPU2)) >> 12;
// TODO: verify number of planes that doesn't go beyond 8