From: Toni Wilen Date: Sat, 10 Apr 2021 15:03:48 +0000 (+0300) Subject: Custom emulation update WIP. X-Git-Tag: 4900~155 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=001c835a2fb95e2c204b7089b8a05e084be338af;p=francis%2Fwinuae.git Custom emulation update WIP. --- 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)