New bitmap method SetRGBConversionFunction which can be used to
[tangerine.git] / rom / graphics / waittof.c
blob2acf36fb05f65d4dca520a2b3aca02e4ad511d41
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
9 #include <proto/exec.h>
10 #include <exec/tasks.h>
11 #include <graphics/gfxbase.h>
13 static int bug; /* Added because of bug in cxref */
15 /*****************************************************************************
17 NAME */
19 AROS_LH0(VOID, WaitTOF,
21 /* SYNOPSIS */
23 /* LOCATION */
24 struct GfxBase *, GfxBase, 45, Graphics)
26 /* FUNCTION
28 Wait for vertical blank.
30 INPUTS
32 RESULT
34 Adds the task to the TOF queue; it will be signalled when the vertical
35 blank interrupt occurs.
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 HISTORY
49 *****************************************************************************/
51 AROS_LIBFUNC_INIT
52 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
54 struct Node wait; /* We cannot use the task's node here as that is
55 used to queue the task in Wait() */
57 wait.ln_Name = (char *)FindTask(NULL);
58 SetSignal(0, SIGF_SINGLE);
60 Disable();
62 AddTail((struct List *)&GfxBase->TOF_WaitQ, (struct Node *)&wait);
63 Wait(SIGF_SINGLE);
64 Remove((struct Node *)&wait);
66 Enable();
68 AROS_LIBFUNC_EXIT
70 } /* WaitTOF */