Main menu prototype

This commit is contained in:
cellos51
2025-08-09 21:49:37 -04:00
parent 8a905907fc
commit 164f58aa1e
11 changed files with 200 additions and 30 deletions
+30
View File
@@ -186,4 +186,34 @@ void memcpy32_tile8_with_palette_offset(u32* dst, const u32* src, uint wcount, u
// Copying u8 data 4 times across u32 data
dst[i] = src[i] + offset;
}
}
void toggle_windows(bool win0, bool win1)
{
if (win0)
{
REG_DISPCNT |= DCNT_WIN0;
}
else
{
REG_DISPCNT &= ~DCNT_WIN0;
}
if (win1)
{
REG_DISPCNT |= DCNT_WIN1;
}
else
{
REG_DISPCNT &= ~DCNT_WIN1;
}
if (win0 || win1)
{
REG_BLDCNT = BLD_BUILD(BLD_BG1, BLD_BG2, 1);
}
else
{
REG_BLDCNT = 0;
}
}