# HG changeset patch # User Mike Pavone # Date 1580711929 28800 # Node ID 789746b1a1b3cd36ea550f6b988108a5fb6fe44e # Parent ebf124803a934eaeef52c9e50dc2013fc21aaa88 Fix crash in OD2 Titancade scene when border is completely cropped by overscan settings diff -r ebf124803a93 -r 789746b1a1b3 vdp.c --- a/vdp.c Sun Feb 02 13:32:51 2020 -0800 +++ b/vdp.c Sun Feb 02 22:38:49 2020 -0800 @@ -2097,7 +2097,7 @@ 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));