]> git.sur5r.net Git - cc65/blob - samples/geos/bitmap-demo.c
Remove trailings spaces from CBM-related asm files
[cc65] / samples / geos / bitmap-demo.c
1 /*
2 ** Minimalistic GEOSLib bitmap demo program
3 **
4 ** 2012-06-10, Oliver Schmidt (ol.sc@web.de)
5 **
6 ** To create bitmap.c use the sp65 sprite and bitmap utility:
7 ** sp65 -r logo.pcx -c geos-bitmap -w bitmap.c,ident=bitmap
8 **
9 */
10
11
12 #include <conio.h>
13 #include <geos.h>
14
15
16 #include "bitmap.c"
17 #if (!(bitmap_COLORS  == 2            && \
18        bitmap_WIDTH%8 == 0            && \
19        bitmap_WIDTH   <= SC_PIX_WIDTH && \
20        bitmap_HEIGHT  <= SC_PIX_HEIGHT))
21 #error Incompatible Bitmap
22 #endif
23
24
25 struct iconpic picture = {(char*)bitmap, 0, 0, bitmap_WIDTH/8, bitmap_HEIGHT};
26
27
28 void main(void)
29 {
30     BitmapUp(&picture);
31     cgetc();
32 }