summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2020-08-04 17:10:55 -0700
committertheo3 <arisstephenson2@gmail.com>2020-08-04 17:10:55 -0700
commit261ec334a0bedbeb3f4340d22173bcb4dec78e6f (patch)
tree59fb19a86218d79012d96fdc1e7ef07bb3df0ac0 /include/global.h
parent519c3b37d747026fc97ba8135b30b19b81819254 (diff)
def ScreenTransition
Diffstat (limited to 'include/global.h')
-rw-r--r--include/global.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/include/global.h b/include/global.h
index 6738b6b8..28a0769c 100644
--- a/include/global.h
+++ b/include/global.h
@@ -47,17 +47,12 @@
#define min(a, b) ((a) < (b) ? (a) : (b))
#define max(a, b) ((a) >= (b) ? (a) : (b))
-struct Coords16
-{
- s16 x;
- s16 y;
-} PACKED;
-
-struct UCoords16
-{
- u16 x;
- u16 y;
-};
+typedef union {
+ s32 WORD;
+ struct {
+ s16 x, y;
+ } HALF;
+} Coords;
union SplitWord {
s32 WORD;