projects
/
gbajam21
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed the tunnel precalc to produce a continuous 10 bit depth value
[gbajam21]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index
5181ba1
..
789e63e
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-20,7
+20,7
@@
((uint16_t*)CRAM_BG_ADDR)[idx] = (uint16_t)(r) | ((uint16_t)(g) << 5) | ((uint16_t)(b) << 10); \
} while(0)
((uint16_t*)CRAM_BG_ADDR)[idx] = (uint16_t)(r) | ((uint16_t)(g) << 5) | ((uint16_t)(b) << 10); \
} while(0)
-extern int8_t sinlut[];
+extern int16_t sinlut[];
#define SIN(x) sinlut[(x) & 0xff]
#define COS(x) sinlut[((x) + 64) & 0xff]
#define SIN(x) sinlut[(x) & 0xff]
#define COS(x) sinlut[((x) + 64) & 0xff]