diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-08-04 17:10:55 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-08-04 17:10:55 -0700 |
| commit | 261ec334a0bedbeb3f4340d22173bcb4dec78e6f (patch) | |
| tree | 59fb19a86218d79012d96fdc1e7ef07bb3df0ac0 /include/global.h | |
| parent | 519c3b37d747026fc97ba8135b30b19b81819254 (diff) | |
def ScreenTransition
Diffstat (limited to 'include/global.h')
| -rw-r--r-- | include/global.h | 17 |
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; |
