Indentation fix, cleanup.
[AROS.git] / rom / graphics / allocdbufinfo.c
blob0b2815405658e58a8bc796e8679edef602c514d7
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <exec/memory.h>
10 #include <proto/exec.h>
11 #include "graphics_intern.h"
13 /*****************************************************************************
15 NAME */
17 #include <graphics/view.h>
19 AROS_LH1(struct DBufInfo *, AllocDBufInfo,
21 /* SYNOPSIS */
23 AROS_LHA(struct ViewPort *, vp, A0),
25 /* LOCATION */
27 struct GfxBase *, GfxBase, 161, Graphics)
29 /* FUNCTION
31 Allocates a double buffering structure used by ChangeVPBitMap().
33 INPUTS
35 vp - pointer to a ViewPort
37 RESULTS
39 Returns NULL if there wasn't enough memory (or if the viewport doesn't
40 support double buffering).
42 NOTES
44 EXAMPLE
46 BUGS
48 SEE ALSO
50 INTERNALS
52 Which ViewPorts doesn't support double buffering?
54 HISTORY
56 ******************************************************************************/
59 AROS_LIBFUNC_INIT
61 return (struct DBufInfo *)AllocMem(MEMF_ANY | MEMF_CLEAR,
62 sizeof(struct DBufInfo));
64 AROS_LIBFUNC_EXIT
65 } /* AllocDBufInfo */