Merge branch 'master' of https://github.com/pret/pokeemerald into doc-windows
This commit is contained in:
+14
-14
@@ -39,7 +39,7 @@ enum {
|
||||
};
|
||||
|
||||
#define LIST_MENU_TILE_NUM 10
|
||||
#define LIST_MENU_PAL_NUM 224
|
||||
#define LIST_MENU_PAL_NUM BG_PLTT_ID(14)
|
||||
|
||||
static void LoadMysteryGiftTextboxBorder(u8 bgId);
|
||||
static void CreateMysteryGiftTask(void);
|
||||
@@ -419,14 +419,14 @@ static bool32 HandleMysteryGiftOrEReaderSetup(s32 isEReader)
|
||||
gMain.state++;
|
||||
break;
|
||||
case 1:
|
||||
LoadPalette(sTextboxBorder_Pal, 0, 0x20);
|
||||
LoadPalette(GetTextWindowPalette(2), 0xd0, 0x20);
|
||||
Menu_LoadStdPalAt(0xC0);
|
||||
LoadUserWindowBorderGfx(0, 0xA, 0xE0);
|
||||
LoadUserWindowBorderGfx_(0, 0x1, 0xF0);
|
||||
FillBgTilemapBufferRect(0, 0x000, 0, 0, 32, 32, 0x11);
|
||||
FillBgTilemapBufferRect(1, 0x000, 0, 0, 32, 32, 0x11);
|
||||
FillBgTilemapBufferRect(2, 0x000, 0, 0, 32, 32, 0x11);
|
||||
LoadPalette(sTextboxBorder_Pal, BG_PLTT_ID(0), PLTT_SIZE_4BPP);
|
||||
LoadPalette(GetTextWindowPalette(2), BG_PLTT_ID(13), PLTT_SIZE_4BPP);
|
||||
Menu_LoadStdPalAt(BG_PLTT_ID(12));
|
||||
LoadUserWindowBorderGfx(0, 0xA, BG_PLTT_ID(14));
|
||||
LoadUserWindowBorderGfx_(0, 0x1, BG_PLTT_ID(15));
|
||||
FillBgTilemapBufferRect(0, 0x000, 0, 0, 32, 32, 17);
|
||||
FillBgTilemapBufferRect(1, 0x000, 0, 0, 32, 32, 17);
|
||||
FillBgTilemapBufferRect(2, 0x000, 0, 0, 32, 32, 17);
|
||||
MG_DrawCheckerboardPattern(3);
|
||||
PrintMysteryGiftOrEReaderHeader(isEReader, FALSE);
|
||||
gMain.state++;
|
||||
@@ -514,16 +514,16 @@ void MG_DrawCheckerboardPattern(u32 bg)
|
||||
{
|
||||
s32 i = 0, j;
|
||||
|
||||
FillBgTilemapBufferRect(bg, 0x003, 0, 0, 32, 2, 0x11);
|
||||
FillBgTilemapBufferRect(bg, 0x003, 0, 0, 32, 2, 17);
|
||||
|
||||
for (i = 0; i < 18; i++)
|
||||
{
|
||||
for (j = 0; j < 32; j++)
|
||||
{
|
||||
if ((i & 1) != (j & 1))
|
||||
FillBgTilemapBufferRect(bg, 1, j, i + 2, 1, 1, 0x11);
|
||||
FillBgTilemapBufferRect(bg, 1, j, i + 2, 1, 1, 17);
|
||||
else
|
||||
FillBgTilemapBufferRect(bg, 2, j, i + 2, 1, 1, 0x11);
|
||||
FillBgTilemapBufferRect(bg, 2, j, i + 2, 1, 1, 17);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -533,10 +533,10 @@ static void ClearScreenInBg0(bool32 ignoreTopTwoRows)
|
||||
switch (ignoreTopTwoRows)
|
||||
{
|
||||
case 0:
|
||||
FillBgTilemapBufferRect(0, 0, 0, 0, 32, 32, 0x11);
|
||||
FillBgTilemapBufferRect(0, 0, 0, 0, 32, 32, 17);
|
||||
break;
|
||||
case 1:
|
||||
FillBgTilemapBufferRect(0, 0, 0, 2, 32, 30, 0x11);
|
||||
FillBgTilemapBufferRect(0, 0, 0, 2, 32, 30, 17);
|
||||
break;
|
||||
}
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
|
||||
Reference in New Issue
Block a user