Mercurial > repos > blastem
changeset 2010:19957e7353a4
Fix a regression in sprite rendering that could cause garbage to be displayed on first line
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 01 Nov 2020 12:32:25 -0800 |
parents | 4ace0fef6f8f |
children | 579fe3f6fe76 |
files | vdp.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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; } }