summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vdp.c b/vdp.c
index 81c7eec..b4c0448 100644
--- a/vdp.c
+++ b/vdp.c
@@ -3369,6 +3369,8 @@ static void check_switch_inactive(vdp_context *context, uint8_t is_h40)
//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;
}
}