mirror of
https://github.com/cc65/cc65.git
synced 2024-10-02 06:56:39 +00:00
a9d1d51f56
TODO: Fix the assert() calls. git-svn-id: svn://svn.cc65.org/cc65/trunk@5699 b7a2c559-68d2-44c3-8de9-860c34a00d81
33 lines
599 B
C
33 lines
599 B
C
/*
|
|
* Minimalistic GEOSLib bitmap demo program
|
|
*
|
|
* 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
|
|
*
|
|
*/
|
|
|
|
|
|
#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);
|
|
|
|
|
|
struct iconpic picture = {(char*)bitmap, 0, 0, bitmap_WIDTH/8, bitmap_HEIGHT};
|
|
|
|
|
|
void main(void)
|
|
{
|
|
BitmapUp(&picture);
|
|
cgetc();
|
|
}
|