-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add bit macros from SA3 #172
Conversation
@@ -37,8 +37,8 @@ | |||
#define OAM_ENTRY_COUNT 128 | |||
#if PORTABLE | |||
// NOTE: Used in gba/types.h, so they have to be defined before the #include | |||
#define DISPLAY_WIDTH 240 | |||
#define DISPLAY_HEIGHT 160 | |||
#define DISPLAY_WIDTH 426 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we doing widescreen by default now? ;)
#define CheckBit(x, y) ((x) & (BitValue(y))) | ||
#define GetBit(x, y) (((x) >> (y)) & 1) | ||
#define SetBit(x, y) (x) |= BitValue(y) | ||
#define SetSoleBit(x, y) (x) = BitValue(y) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this one?
@@ -786,7 +786,7 @@ static void Task_IntroColorAnimation(void) | |||
} | |||
} | |||
|
|||
gUnknown_03002A80 = 2; | |||
gUnknown_03002A80 = 2 * sizeof(int_vcount); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated change, but obviously makes sense to keep
No description provided.