using unsigned UNUM_ROWS and UNUM_COLS saves 80 bytes without breaking it

This commit is contained in:
Christian Kroll 2011-03-10 21:21:07 +00:00
parent b2ada1c384
commit a453b61742
1 changed files with 4 additions and 4 deletions

View File

@ -20,16 +20,16 @@
#undef DEBUG
#define XSIZE NUM_COLS
#define YSIZE NUM_ROWS
#define XSIZE UNUM_COLS
#define YSIZE UNUM_ROWS
/*
* last line is for debug information
*/
#ifdef DEBUG
#undef YSIZE
#define YSIZE (NUM_ROWS-1)
#define DEBUG_ROW (NUM_ROWS-1)
#define YSIZE (UNUM_ROWS-1)
#define DEBUG_ROW (UNUM_ROWS-1)
#define DEBUG_BIT(pos, val) \
setpixel((pixel){(pos)%XSIZE,DEBUG_ROW+(pos)/XSIZE},(val)?3:0)
#define DEBUG_BYTE(s,v) \