Search
lxdream.org :: lxdream :: r1118:0c00e6594d01
lxdream 0.9.1
released Jun 29
Download Now
changeset1118:0c00e6594d01
parent1117:0b14a8ec373b
child1119:45602839e067
authornkeynes
dateWed Sep 08 23:16:47 2010 +1000 (9 years ago)
Fix timing of long events (failed to take into account the current time)
src/eventq.c
1.1 --- a/src/eventq.c Wed Sep 08 17:24:16 2010 +1000
1.2 +++ b/src/eventq.c Wed Sep 08 23:16:47 2010 +1000
1.3 @@ -180,7 +180,7 @@
1.4
1.5 event->id = eventid;
1.6 event->seconds = seconds;
1.7 - event->nanosecs = nanosecs;
1.8 + event->nanosecs = nanosecs + sh4r.slice_cycle + (LONG_SCAN_PERIOD - long_scan_time_remaining);
1.9 event->next = long_event_head;
1.10 long_event_head = event;
1.11 }
.