Mercurial > repos > blastem
changeset 1899:789746b1a1b3
Fix crash in OD2 Titancade scene when border is completely cropped by overscan settings
author | Mike Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 02 Feb 2020 22:38:49 -0800 |
parents | ebf124803a93 |
children | 93960907807a |
files | vdp.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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));