diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-11-03 19:21:40 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2008-11-03 19:21:40 +0000 |
commit | d934e52dc6102615dbf095353cd0955d7526d7d1 (patch) | |
tree | b0a14d059a34010349db77f630acb5070d7a1ffb /amiga/schedule.c | |
parent | cae0d4a43bdc46586217a1e0375f5d59cadd1fba (diff) | |
download | netsurf-d934e52dc6102615dbf095353cd0955d7526d7d1.tar.gz netsurf-d934e52dc6102615dbf095353cd0955d7526d7d1.tar.bz2 |
Minor fixes, changing some defaults to safer values, screen_modeid should now work.
Added screen_depth to stop it complaining when trying to BestModeID() a 32-bit screen
on a system that doesn't have one.
svn path=/trunk/netsurf/; revision=5650
Diffstat (limited to 'amiga/schedule.c')
-rwxr-xr-x | amiga/schedule.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/amiga/schedule.c b/amiga/schedule.c index f088aa908..dd50a8cc5 100755 --- a/amiga/schedule.c +++ b/amiga/schedule.c @@ -95,8 +95,10 @@ void schedule_remove(void (*callback)(void *p), void *p) node = (struct nsObject *)GetHead((struct List *)schedule_list); - while(nnode=(struct nsObject *)GetSucc((struct Node *)node)) + do { + nnode=(struct nsObject *)GetSucc((struct Node *)node); + nscb = node->objstruct; if(!nscb) continue; @@ -105,8 +107,8 @@ void schedule_remove(void (*callback)(void *p), void *p) ami_remove_timer_event(nscb); DelObject(node); } - node=nnode; - } + + }while (node=nnode); } /** |