Merge pull request #1519 from GriffinRichards/doc-mgift

Document Mystery Gift
This commit is contained in:
GriffinR
2021-10-24 15:50:39 -04:00
committed by GitHub
110 changed files with 5190 additions and 4866 deletions
+9 -9
View File
@@ -553,14 +553,14 @@ s32 ChangeBgX(u8 bg, s32 value, u8 op)
switch (op)
{
case 0:
case BG_COORD_SET:
default:
sGpuBgConfigs2[bg].bg_x = value;
break;
case 1:
case BG_COORD_ADD:
sGpuBgConfigs2[bg].bg_x += value;
break;
case 2:
case BG_COORD_SUB:
sGpuBgConfigs2[bg].bg_x -= value;
break;
}
@@ -633,14 +633,14 @@ s32 ChangeBgY(u8 bg, s32 value, u8 op)
switch (op)
{
case 0:
case BG_COORD_SET:
default:
sGpuBgConfigs2[bg].bg_y = value;
break;
case 1:
case BG_COORD_ADD:
sGpuBgConfigs2[bg].bg_y += value;
break;
case 2:
case BG_COORD_SUB:
sGpuBgConfigs2[bg].bg_y -= value;
break;
}
@@ -703,14 +703,14 @@ s32 ChangeBgY_ScreenOff(u8 bg, s32 value, u8 op)
switch (op)
{
case 0:
case BG_COORD_SET:
default:
sGpuBgConfigs2[bg].bg_y = value;
break;
case 1:
case BG_COORD_ADD:
sGpuBgConfigs2[bg].bg_y += value;
break;
case 2:
case BG_COORD_SUB:
sGpuBgConfigs2[bg].bg_y -= value;
break;
}
+6
View File
@@ -21,6 +21,12 @@ enum {
BG_TYPE_NONE = 0xFFFF
};
enum {
BG_COORD_SET,
BG_COORD_ADD,
BG_COORD_SUB,
};
struct BgTemplate
{
u16 bg:2; // 0x1, 0x2 -> 0x3