mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Review changes from https://github.com/pret/pokefirered/pull/525
This commit is contained in:
parent
cc288e3786
commit
b49f8c10ad
@ -396,20 +396,16 @@ bool8 HandleMonMarkingsMenuInput(void)
|
||||
|
||||
if (JOY_NEW(DPAD_UP))
|
||||
{
|
||||
s8 pos;
|
||||
PlaySE(SE_SELECT);
|
||||
pos = --sMenu->cursorPos;
|
||||
if (pos < 0)
|
||||
if (--sMenu->cursorPos < 0)
|
||||
sMenu->cursorPos = SELECTION_CANCEL;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (JOY_NEW(DPAD_DOWN))
|
||||
{
|
||||
s8 pos;
|
||||
PlaySE(SE_SELECT);
|
||||
pos = ++sMenu->cursorPos;
|
||||
if (pos > SELECTION_CANCEL)
|
||||
if (++sMenu->cursorPos > SELECTION_CANCEL)
|
||||
sMenu->cursorPos = 0;
|
||||
return TRUE;
|
||||
}
|
||||
|
@ -9241,16 +9241,16 @@ static bool8 UpdateItemInfoWindowSlideOut(void)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
static void DrawItemInfoWindow(u32 pos)
|
||||
static void DrawItemInfoWindow(u32 x)
|
||||
{
|
||||
if (pos != 0)
|
||||
if (x != 0)
|
||||
{
|
||||
FillBgTilemapBufferRect(0, 0x13A, 0, 0xC, pos, 1, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x93A, 0, 0x14, pos, 1, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x13A, 0, 0xC, x, 1, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x93A, 0, 0x14, x, 1, 0xFu);
|
||||
}
|
||||
FillBgTilemapBufferRect(0, 0x13B, pos, 0xD, 1, 7, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x13C, pos, 0xC, 1, 1, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x13D, pos, 0x14, 1, 1, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x13B, x, 0xD, 1, 7, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x13C, x, 0xC, 1, 1, 0xFu);
|
||||
FillBgTilemapBufferRect(0, 0x13D, x, 0x14, 1, 1, 0xFu);
|
||||
ScheduleBgCopyTilemapToVram(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user