From b74dd5f387ebb8e7dc542dd5fd97284b67ba816c Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Sun, 2 Feb 2020 22:38:49 -0800 Subject: Fix crash in OD2 Titancade scene when border is completely cropped by overscan settings --- vdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdp.c') 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)); -- cgit v1.2.3