summaryrefslogtreecommitdiff
path: root/src/engine/link.c
diff options
context:
space:
mode:
authorCameron Hall <camthesaxman@users.noreply.github.com>2018-01-09 17:03:02 -0600
committerGitHub <noreply@github.com>2018-01-09 17:03:02 -0600
commit1877ba24ca489827f1093858ed58c38ff00a4576 (patch)
tree502c26ec51aa55df4eb1ff4324ab90c3b0a0610a /src/engine/link.c
parent85174ad6193d3d58b92deaaedf8c510440ed85ee (diff)
parent03b167a73e2f18fa79bbf0e6ffe11e0c35c12ad8 (diff)
Merge pull request #518 from camthesaxman/menu_refactor
re-label some window and text code
Diffstat (limited to 'src/engine/link.c')
-rw-r--r--src/engine/link.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/engine/link.c b/src/engine/link.c
index 28323207c..34016d607 100644
--- a/src/engine/link.c
+++ b/src/engine/link.c
@@ -238,8 +238,8 @@ void LinkTestScreen(void)
FreeAllSpritePalettes();
ResetTasks();
SetVBlankCallback(VBlankCB_LinkTest);
- SetUpWindowConfig(&gWindowConfig_81E6CE4);
- InitMenuWindow((struct WindowConfig *)&gWindowConfig_81E6CE4);
+ Text_LoadWindowTemplate(&gWindowTemplate_81E6CE4);
+ InitMenuWindow((struct WindowTemplate *)&gWindowTemplate_81E6CE4);
ResetBlockSend();
gLinkType = 0x1111;
OpenLink();
@@ -1236,9 +1236,9 @@ void CB2_LinkError(void)
FillPalette(0, 0, 2);
ResetTasks();
SetVBlankCallback(VBlankCB_LinkTest);
- SetUpWindowConfig(&gWindowConfig_81E7198);
- InitMenuWindow((struct WindowConfig *)&gWindowConfig_81E7198);
- MenuZeroFillScreen();
+ Text_LoadWindowTemplate(&gWindowTemplate_81E7198);
+ InitMenuWindow((struct WindowTemplate *)&gWindowTemplate_81E7198);
+ Menu_EraseScreen();
REG_BLDALPHA = 0;
REG_BG0VOFS = 0;
REG_BG0HOFS = 0;
@@ -1260,7 +1260,7 @@ static void CB2_PrintErrorMessage(void)
switch (gMain.state)
{
case 0:
- MenuPrint_PixelCoords(gMultiText_LinkError, 20, 56, 1);
+ Menu_PrintTextPixelCoords(gMultiText_LinkError, 20, 56, 1);
break;
case 30:
case 60: