# HG changeset patch # User Mike Pavone # Date 1604262745 28800 # Node ID 19957e7353a4413a3e7b36bf331fc5e0674f2f4b # Parent 4ace0fef6f8f44fcd2d8f54e7520c4875a9d9f19 Fix a regression in sprite rendering that could cause garbage to be displayed on first line diff -r 4ace0fef6f8f -r 19957e7353a4 vdp.c --- a/vdp.c Mon Oct 19 15:46:16 2020 -0700 +++ b/vdp.c Sun Nov 01 12:32:25 2020 -0800 @@ -3369,6 +3369,8 @@ //technically the second hcounter check should be different for H40, but this is probably close enough for now if (context->state == ACTIVE && context->vcounter == context->inactive_start && (context->hslot >= (is_h40 ? 167 : 135) || context->hslot < 133)) { context->state = INACTIVE; + context->cur_slot = MAX_SPRITES_LINE-1; + context->sprite_x_offset = 0; } }