Merge pull request #1519 from GriffinRichards/doc-mgift

Document Mystery Gift
This commit is contained in:
GriffinR authored and GitHub committed 2021-10-24 15:50:39 -04:00
commit ab80264921
110 files changed
+5190 -4866

No files matched your search

+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