2 Copyright © 1995-2010, The AROS Development Team. All rights reserved.
9 #include <proto/graphics.h>
11 /*****************************************************************************
15 #include <graphics/gfx.h>
17 AROS_LH4I(VOID
, InitBitMap
,
21 AROS_LHA(struct BitMap
*, bm
, A0
),
22 AROS_LHA(BYTE
, depth
, D0
),
23 AROS_LHA(UWORD
, width
, D1
),
24 AROS_LHA(UWORD
, height
, D2
),
28 struct Library
*, GfxBase
, 65, Graphics
)
32 Initialize BitMap structure. A bitmap MUST be initialized before it's
33 used in any (other) graphics library function.
37 bm -- pointer to BitMap structure
38 depth -- number of bitplanes
39 width -- width in pixels of this bitmap
40 height -- height in pixels of this bitmap
46 The Planes[] is not affected and must be set up the caller.
60 ******************************************************************************/
67 bm
->Flags
= BMF_STANDARD
;
69 bm
->BytesPerRow
= ((width
+ 15) >> 3) & ~0x1;