# HG changeset patch # User Michael Pavone # Date 1432345124 25200 # Node ID 2174f92c5f9bbcde670790ad5eb98bbad9d0b5b9 # Parent 7178d750efbdbe55c18f7c518ab6288c304c2de3 Fix bug in vdp_next_hint that was causing HINTs to fire repeatedly when they should not have fired at all based on an HINT interval that was larger than the number of active lines in the display diff -r 7178d750efbd -r 2174f92c5f9b vdp.c --- a/vdp.c Thu May 21 18:37:41 2015 -0700 +++ b/vdp.c Fri May 22 18:38:44 2015 -0700 @@ -2034,6 +2034,9 @@ uint32_t inactive_start = context->latched_mode & BIT_PAL ? PAL_INACTIVE_START : NTSC_INACTIVE_START; uint32_t hint_line; if (context->vcounter + context->hint_counter >= inactive_start) { + if (context->regs[REG_HINT] > inactive_start) { + return 0xFFFFFFFF; + } hint_line = context->regs[REG_HINT]; } else { hint_line = context->vcounter + context->hint_counter + 1;