2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
6 #include <cybergraphx/cybergraphics.h>
8 #include <proto/intuition.h>
9 #include <proto/cybergraphics.h>
16 static char *pixfmt_str
[14]=
36 struct Screen
*scr
= IntuitionBase
->ActiveScreen
;
40 struct BitMap
*bm
= scr
->RastPort
.BitMap
;
43 pixfmt
= GetCyberMapAttr(bm
, CYBRMATTR_PIXFMT
);
45 printf("Pixel Format: #%ld (%s)\n",
47 ((pixfmt
>= 0) && (pixfmt
< NUM_PIXFMT
)) ? pixfmt_str
[pixfmt
] : "<unknown>");