From 001c835a2fb95e2c204b7089b8a05e084be338af Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 10 Apr 2021 18:03:48 +0300 Subject: [PATCH] Custom emulation update WIP. --- custom.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/custom.cpp b/custom.cpp index 1e90606a..aabe1a58 100644 --- a/custom.cpp +++ b/custom.cpp @@ -8518,6 +8518,11 @@ static void hsync_handler_pre(bool onvsync) // to record decisions correctly between end of scanline and start of hsync hpos_hsync_extra = maxhpos; + if (!eventtab[ev_hsynch].active) { + eventtab[ev_hsynch].evtime = get_cycles() + (hsyncstartpos_start >> CCK_SHRES_SHIFT) * CYCLE_UNIT; + eventtab[ev_hsynch].active = 1; + events_schedule(); + } } STATIC_INLINE bool is_last_line (void) -- 2.47.3