More usage of DISPLAY constants
This commit is contained in:
@@ -896,8 +896,8 @@ static bool8 HandleMainMenuInput(u8 taskId)
|
||||
{
|
||||
PlaySE(SE_SELECT);
|
||||
BeginNormalPaletteFade(PALETTES_ALL, 0, 0, 0x10, RGB_WHITEALPHA);
|
||||
SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(0, 240));
|
||||
SetGpuReg(REG_OFFSET_WIN0V, WIN_RANGE(0, 160));
|
||||
SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(0, DISPLAY_WIDTH));
|
||||
SetGpuReg(REG_OFFSET_WIN0V, WIN_RANGE(0, DISPLAY_HEIGHT));
|
||||
gTasks[taskId].func = Task_HandleMainMenuBPressed;
|
||||
}
|
||||
else if ((JOY_NEW(DPAD_UP)) && tCurrItem > 0)
|
||||
@@ -1547,7 +1547,7 @@ static void Task_NewGameBirchSpeech_SlideOutOldGenderSprite(u8 taskId)
|
||||
spriteId = gTasks[taskId].tMaySpriteId;
|
||||
else
|
||||
spriteId = gTasks[taskId].tBrendanSpriteId;
|
||||
gSprites[spriteId].pos1.x = 240;
|
||||
gSprites[spriteId].pos1.x = DISPLAY_WIDTH;
|
||||
gSprites[spriteId].pos1.y = 60;
|
||||
gSprites[spriteId].invisible = FALSE;
|
||||
gTasks[taskId].tPlayerSpriteId = spriteId;
|
||||
@@ -2129,8 +2129,8 @@ static void CreateMainMenuErrorWindow(const u8* str)
|
||||
PutWindowTilemap(7);
|
||||
CopyWindowToVram(7, 2);
|
||||
DrawMainMenuWindowBorder(&sWindowTemplates_MainMenu[7], MAIN_MENU_BORDER_TILE);
|
||||
SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(9, 231));
|
||||
SetGpuReg(REG_OFFSET_WIN0V, WIN_RANGE(113, 159));
|
||||
SetGpuReg(REG_OFFSET_WIN0H, WIN_RANGE(9, DISPLAY_WIDTH - 9));
|
||||
SetGpuReg(REG_OFFSET_WIN0V, WIN_RANGE(113, DISPLAY_HEIGHT - 1));
|
||||
}
|
||||
|
||||
static void MainMenu_FormatSavegameText(void)
|
||||
|
||||
Reference in New Issue
Block a user