From 4059d2b0961a6361d422854524b2be0235719c62 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Thu, 15 Oct 2009 21:35:29 +0000 Subject: Fix-up the timer.device scheduler and reinstate it as default. Unfortunately this doesn't remove the need for INTUITICKS messages as we still need to break out for page reflow (which doesn't use the scheduler), but it should make animations more accurate. svn path=/trunk/netsurf/; revision=9648 --- amiga/schedule.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'amiga/schedule.c') diff --git a/amiga/schedule.c b/amiga/schedule.c index 8ec7b3da0..9ce5c6096 100755 --- a/amiga/schedule.c +++ b/amiga/schedule.c @@ -62,16 +62,16 @@ void schedule(int t, void (*callback)(void *p), void *p) GetSysTime(&tv); AddTime(&nscb->tv,&tv); // now contains time when event occurs -#ifdef AMI_SCHEDULER_USES_TIMER - if(nscb->treq = AllocVec(sizeof(struct timerequest),MEMF_PRIVATE | MEMF_CLEAR)) + + if(nscb->treq = AllocVec(sizeof(struct TimeRequest),MEMF_PRIVATE | MEMF_CLEAR)) { *nscb->treq = *tioreq; nscb->treq->Request.io_Command=TR_ADDREQUEST; - nscb->treq->Time.Seconds=nscb->tv.tv_sec; // secs + nscb->treq->Time.Seconds=nscb->tv.Seconds; // secs nscb->treq->Time.Microseconds=nscb->tv.Microseconds; // micro SendIO((struct IORequest *)nscb->treq); } -#endif + nscb->callback = callback; nscb->p = p; } -- cgit v1.2.3