summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2016-04-30 16:19:19 -0700
committerMichael Pavone <pavone@retrodev.com>2016-04-30 16:19:19 -0700
commit19bb763b860f4172215d637e304d872dbf262cb3 (patch)
treeda613670204c85fc139c87032a3ba06778a56051
parent020f7a650838ab52be6113232b70e012a73f5c81 (diff)
Set sprite overflow flag if we completely consume sprite rendering capacity for the line even if there is nothing left to draw. This graphical corruption in the vertical stretching scroll section. Needs hardware confirmation.
-rw-r--r--vdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index c1b8877..6192d0d 100644
--- a/vdp.c
+++ b/vdp.c
@@ -478,7 +478,7 @@ void read_sprite_x(uint32_t line, vdp_context * context)
context->sprite_draw_list[context->sprite_draws].h_flip = (tileinfo & MAP_BIT_H_FLIP) ? 1 : 0;
}
}
- if (i < width) {
+ if (!context->sprite_draws/*i < width*/) {
context->flags |= FLAG_DOT_OFLOW;
}
context->cur_slot--;