mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
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:
+11
-4
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user