summaryrefslogtreecommitdiff
path: root/vdp.c
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2020-02-02 22:38:49 -0800
committerMike Pavone <pavone@retrodev.com>2020-02-02 22:38:49 -0800
commitb74dd5f387ebb8e7dc542dd5fd97284b67ba816c (patch)
tree6ad219a0643cb42d54372e227d8dd592f575b375 /vdp.c
parent4199e913d1e5832dc5ba86194b187fe1408613c1 (diff)
Fix crash in OD2 Titancade scene when border is completely cropped by overscan settings
Diffstat (limited to 'vdp.c')
-rw-r--r--vdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdp.c b/vdp.c
index ff7338e..fcae2c9 100644
--- a/vdp.c
+++ b/vdp.c
@@ -2097,7 +2097,7 @@ static void advance_output_line(vdp_context *context)
output_line++;
}
- if (context->output_lines == lines_max || (!context->pushed_frame && output_line == context->inactive_start + context->border_top)) {
+ if (context->output_lines >= lines_max || (!context->pushed_frame && output_line == context->inactive_start + context->border_top)) {
//we've either filled up a full frame or we're at the bottom of screen in the current defined mode + border crop
if (!headless) {
render_framebuffer_updated(context->cur_buffer, context->h40_lines > (context->inactive_start + context->border_top) / 2 ? LINEBUF_SIZE : (256+HORIZ_BORDER));