2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Graphics function InitRastPort()
8 #include "graphics_intern.h"
9 #include <graphics/rastport.h>
10 #include <proto/exec.h>
11 #include <proto/graphics.h>
13 /*****************************************************************************
17 AROS_LH3(void, InitTmpRas
,
20 AROS_LHA(struct TmpRas
*, tmpras
, A0
),
21 AROS_LHA(void * , buffer
, A1
),
22 AROS_LHA(ULONG
, size
, D0
),
25 struct GfxBase
*, GfxBase
, 78, Graphics
)
28 Initializes a TmpRas structure. The user has to conect the
29 TmpRas structure to the rastport.
30 Some routines need extra memory in order to be able to operate
34 tmpras - pointer to a TmpRas structure to be initialized
35 buffer - pointer to a piece of chip memory.
36 size - size in bytes of buffer.
39 Properly initilized TmpRas struture to link to RastPort structure
40 for use with functions like Flood(), Text() and AreaEnd().
47 The function itself is a bug.
48 Why does this function exist at all? The necessary memory should
49 be allocated in InitRastPort() or the functions that need it.
57 *****************************************************************************/
60 AROS_LIBBASE_EXT_DECL(struct GfxBase
*,GfxBase
)
62 tmpras
->RasPtr
= buffer
;