]> git.sur5r.net Git - cc65/commitdiff
Replaced (broken) assert() with #error and added a source bitmap.
authorol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 10 Jun 2012 17:52:23 +0000 (17:52 +0000)
committerol.sc <ol.sc@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sun, 10 Jun 2012 17:52:23 +0000 (17:52 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@5700 b7a2c559-68d2-44c3-8de9-860c34a00d81

samples/geos/bitmap-demo.c
samples/geos/logo.pcx [new file with mode: 0644]

index 8aa687d077f94b271c4c19a3546193f130416920..0e7d0d2aa538a6c2f0edcc5dea1b647dec2cc877 100644 (file)
@@ -4,22 +4,22 @@
  * 2012-06-10, Oliver Schmidt (ol.sc@web.de)
  *
  * To create bitmap.c use the sp65 sprite and bitmap utility:
- * sp65 -r <input>.pcx -c geos-bitmap -w bitmap.c,ident=bitmap
+ * sp65 -r logo.pcx -c geos-bitmap -w bitmap.c,ident=bitmap
  *
  */
 
 
-#include <assert.h>
 #include <conio.h>
 #include <geos.h>
 
 
 #include "bitmap.c"
-
-//assert(bitmap_COLORS  == 2);
-//assert(bitmap_WIDTH%8 == 0);
-//assert(bitmap_WIDTH   <= SC_PIX_WIDTH);
-//assert(bitmap_HEIGHT  <= SC_PIX_HEIGHT);
+#if (!(bitmap_COLORS  == 2            && \
+       bitmap_WIDTH%8 == 0            && \
+       bitmap_WIDTH   <= SC_PIX_WIDTH && \
+       bitmap_HEIGHT  <= SC_PIX_HEIGHT))
+#error Incompatible Bitmap
+#endif
 
 
 struct iconpic picture = {(char*)bitmap, 0, 0, bitmap_WIDTH/8, bitmap_HEIGHT};
diff --git a/samples/geos/logo.pcx b/samples/geos/logo.pcx
new file mode 100644 (file)
index 0000000..848cae7
Binary files /dev/null and b/samples/geos/logo.pcx differ