diff options
| author | Marcus Huderle <huderlem@gmail.com> | 2019-04-06 12:41:55 -0500 | 
|---|---|---|
| committer | huderlem <huderlem@gmail.com> | 2019-04-06 12:49:09 -0500 | 
| commit | fe12f2f4b360e68937e49af8672c8b1b1441223c (patch) | |
| tree | 703d146f8478957549859be19a12b78d06696b84 /include/gba | |
| parent | 6a14cd418e256e0a0c2569cf6da5c95a8cf04b74 (diff) | |
Document and cleanup some decoration code
Diffstat (limited to 'include/gba')
| -rw-r--r-- | include/gba/types.h | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/include/gba/types.h b/include/gba/types.h index cb370c785..9f2594703 100644 --- a/include/gba/types.h +++ b/include/gba/types.h @@ -107,8 +107,8 @@ struct OamData  #define SPRITE_SIZE_16x32   ((ST_OAM_SIZE_2 << 2) | (ST_OAM_V_RECTANGLE))  #define SPRITE_SIZE_32x64   ((ST_OAM_SIZE_3 << 2) | (ST_OAM_V_RECTANGLE)) -#define SPRITE_SIZE(dim) (SPRITE_SIZE_##dim >> 2) -#define SPRITE_SHAPE(dim) (SPRITE_SIZE_##dim & 0xFF) +#define SPRITE_SIZE(dim)  ((SPRITE_SIZE_##dim >> 2) & 0x03) +#define SPRITE_SHAPE(dim) (SPRITE_SIZE_##dim & 0x03)  struct BgAffineSrcData  { | 
