summaryrefslogtreecommitdiff
path: root/amiga/schedule.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-10-15 21:35:29 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-10-15 21:35:29 +0000
commit4059d2b0961a6361d422854524b2be0235719c62 (patch)
treea925bed36e4d948100b3cad9a040a0562c91596f /amiga/schedule.c
parent87695acd33f4285dd3c9f4da7568acff9c33016e (diff)
downloadnetsurf-4059d2b0961a6361d422854524b2be0235719c62.tar.gz
netsurf-4059d2b0961a6361d422854524b2be0235719c62.tar.bz2
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
Diffstat (limited to 'amiga/schedule.c')
-rwxr-xr-xamiga/schedule.c8
1 files changed, 4 insertions, 4 deletions
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;
}