]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Custom emulation update WIP.
authorToni Wilen <twilen@winuae.net>
Sat, 10 Apr 2021 15:03:48 +0000 (18:03 +0300)
committerToni Wilen <twilen@winuae.net>
Sat, 10 Apr 2021 15:03:48 +0000 (18:03 +0300)
custom.cpp

index 1e90606a975c538b720263c461da81903f7d5a59..aabe1a58c92d302166bd660d187d12e4bc9d9b04 100644 (file)
@@ -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)