1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-06 16:29:30 +00:00

Replaced (broken) assert() with #error and added a source bitmap.

git-svn-id: svn://svn.cc65.org/cc65/trunk@5700 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
ol.sc 2012-06-10 17:52:23 +00:00
parent a9d1d51f56
commit cc5fd1dd72
2 changed files with 7 additions and 7 deletions

View File

@ -4,22 +4,22 @@
* 2012-06-10, Oliver Schmidt (ol.sc@web.de) * 2012-06-10, Oliver Schmidt (ol.sc@web.de)
* *
* To create bitmap.c use the sp65 sprite and bitmap utility: * 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 <conio.h>
#include <geos.h> #include <geos.h>
#include "bitmap.c" #include "bitmap.c"
#if (!(bitmap_COLORS == 2 && \
//assert(bitmap_COLORS == 2); bitmap_WIDTH%8 == 0 && \
//assert(bitmap_WIDTH%8 == 0); bitmap_WIDTH <= SC_PIX_WIDTH && \
//assert(bitmap_WIDTH <= SC_PIX_WIDTH); bitmap_HEIGHT <= SC_PIX_HEIGHT))
//assert(bitmap_HEIGHT <= SC_PIX_HEIGHT); #error Incompatible Bitmap
#endif
struct iconpic picture = {(char*)bitmap, 0, 0, bitmap_WIDTH/8, bitmap_HEIGHT}; struct iconpic picture = {(char*)bitmap, 0, 0, bitmap_WIDTH/8, bitmap_HEIGHT};

BIN
samples/geos/logo.pcx Normal file

Binary file not shown.