2 Copyright © 2016-2017, The AROS Development Team. All rights reserved.
6 #include <aros/debug.h>
7 #include <proto/graphics.h>
9 int main(int argc
, char **argv
)
11 struct BitMap
*bitmap
= NULL
;
12 ULONG flags
= BMF_CLEAR
| BMF_MINPLANES
;
15 for (depth
= 1; depth
< 33; depth
++)
18 ((depth
!= 15) || (depth
!= 16) || (depth
!= 24) || (depth
!= 32)))
21 if ((bitmap
= AllocBitMap((44 << 3), 220, depth
, flags
, NULL
)) != NULL
)
23 bug("%dbit BitMap @ 0x%p\n", depth
, bitmap
);
29 bug("Failed to allocate %dbit BitMap\n", depth
);