Fixed missing fprintf argument.
[AROS.git] / rom / graphics / allocraster.c
blobbafd34623b74983ac9b9e291ffdd56657330d4c0
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include <exec/memory.h>
9 #include <proto/exec.h>
10 #include "graphics_intern.h"
12 /*****************************************************************************
14 NAME */
15 #include <graphics/gfx.h>
16 #include <proto/graphics.h>
18 AROS_LH2(PLANEPTR, AllocRaster,
20 /* SYNOPSIS */
21 AROS_LHA(ULONG , width, D0),
22 AROS_LHA(ULONG , height, D1),
24 /* LOCATION */
25 struct GfxBase *, GfxBase, 82, Graphics)
27 /* FUNCTION
28 Allocates memory for a single bitplane with the specified size in
29 pixels.
31 INPUTS
32 width, height - The size of the resulting bitplane in pixels.
34 RESULT
35 A pointer to the single bitplane.
37 NOTES
38 You should not use this function to create BitMaps. Call
39 AllocBitMap() instead.
41 EXAMPLE
43 BUGS
45 SEE ALSO
46 AllocBitMap(), FreeRaster(), FreeBitMap()
48 INTERNALS
50 HISTORY
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
55 AROS_LIBBASE_EXT_DECL(struct GfxBase *,GfxBase)
57 return AllocMem (RASSIZE(width,height),MEMF_CHIP);
58 AROS_LIBFUNC_EXIT
59 } /* AllocRaster */