diff options
author | Mike Pavone <pavone@retrodev.com> | 2020-02-02 22:38:49 -0800 |
---|---|---|
committer | Mike Pavone <pavone@retrodev.com> | 2020-02-02 22:38:49 -0800 |
commit | b74dd5f387ebb8e7dc542dd5fd97284b67ba816c (patch) | |
tree | 6ad219a0643cb42d54372e227d8dd592f575b375 /vdp.c | |
parent | 4199e913d1e5832dc5ba86194b187fe1408613c1 (diff) |
Fix crash in OD2 Titancade scene when border is completely cropped by overscan settings
Diffstat (limited to 'vdp.c')
-rw-r--r-- | vdp.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |