diff options
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | vdp.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -82,8 +82,7 @@ CFLAGS+= -DZ80_LOG_ADDRESS endif ifdef PROFILE -CFLAGS+= -pg -LDFLAGS+= -pg +LDFLAGS+= -Wl,--no-as-needed -lprofiler -Wl,--as-needed endif ifdef NOGL CFLAGS+= -DDISABLE_OPENGL @@ -1479,6 +1479,9 @@ static void vdp_advance_line(vdp_context *context) } else if (!(context->latched_mode & BIT_PAL) && context->vcounter == 0xEB) { context->vcounter = 0x1E5; } + if (context->vcounter == 0x200 - context->border_top) { + latch_mode(context); + } } else if (context->vcounter == 0xDB) { context->vcounter = 0x1D5; } |