chiark
/
gitweb
/
~ian
/
moebius2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
interpolate and various sizes build
[moebius2.git]
/
mgraph.h
diff --git
a/mgraph.h
b/mgraph.h
index 43494c7ebc9c38246b97222582f71dbe1476d3b7..e98fa850a53658bacf17ff452d03d2341c89afa9 100644
(file)
--- a/
mgraph.h
+++ b/
mgraph.h
@@
-69,9
+69,15
@@
#include "common.h"
+#ifndef DEFBITS
#define XBITS 3
-#define X (1<<XBITS)
#define YBITS 3
+#else
+#define XBITS (DEFBITS / 10)
+#define YBITS (DEFBITS % 10)
+#endif
+
+#define X (1<<XBITS)
#define Y ((1<<YBITS) - 1)
#define N (X*Y)