en_dy_extra OK (#35)

* dy_extra decomped, but not ok

* Formatting

* Fixed data, en_dy_extra now OK

* Formatting

* Removed unnecessary color struct

* added newlines
This commit is contained in:
fullgrowngaming
2020-10-12 22:30:22 -05:00
committed by GitHub
parent f927730418
commit e997a0b67f
5 changed files with 131 additions and 15 deletions
+11 -4
View File
@@ -28,17 +28,24 @@
extern GraphicsContext* oGfxCtx;
#define OPEN_DISPS(gfxCtx, file, line) \
#define OPEN_DISPS(gfxCtx) \
{ \
GraphicsContext* oGfxCtx; \
Gfx* dispRefs[4]; \
oGfxCtx = gfxCtx; \
#define CLOSE_DISPS(gfxCtx, file, line) \
} \
#define CLOSE_DISPS(gfxCtx) \
} \
(void)0
#define GRAPH_ALLOC(gfxCtx, size) \
((gfxCtx)->polyOpa.d = (Gfx*)((u8*)(gfxCtx)->polyOpa.d - (size)))
#define SQ(x) ((x)*(x))
#define ABS(x) ((x) >= 0 ? (x) : -(x))
#define ULTRA_ABS(x) ((x) > 0) ? (x) : -(x)
#define DECR(x) ((x) == 0 ? 0 : ((x) -= 1))
#define CLAMP(x, min, max) ((x) < (min) ? (min) : (x) > (max) ? (max) : (x))
#define CLAMP_MAX(x, max) ((x) > (max) ? (max) : (x))
#define CLAMP_MIN(x, min) ((x) < (min) ? (min) : (x))
#endif // _MACROS_H_