Add COPYWIN constants
This commit is contained in:
+9
-9
@@ -878,7 +878,7 @@ static void AskUsePokeblock(void)
|
||||
DrawTextBorderOuter(WIN_TEXT, 151, 14);
|
||||
AddTextPrinterParameterized(WIN_TEXT, FONT_NORMAL, gStringVar4, 0, 1, 0, NULL);
|
||||
PutWindowTilemap(WIN_TEXT);
|
||||
CopyWindowToVram(WIN_TEXT, 3);
|
||||
CopyWindowToVram(WIN_TEXT, COPYWIN_FULL);
|
||||
CreateYesNoMenu(&sUsePokeblockYesNoWinTemplate, 151, 14, 0);
|
||||
}
|
||||
|
||||
@@ -919,7 +919,7 @@ static void PrintFirstEnhancement(void)
|
||||
|
||||
PrintMenuWindowText(gStringVar4);
|
||||
PutWindowTilemap(WIN_TEXT);
|
||||
CopyWindowToVram(WIN_TEXT, 3);
|
||||
CopyWindowToVram(WIN_TEXT, COPYWIN_FULL);
|
||||
}
|
||||
|
||||
static bool8 TryPrintNextEnhancement(void)
|
||||
@@ -943,7 +943,7 @@ static bool8 TryPrintNextEnhancement(void)
|
||||
|
||||
BufferEnhancedStatText(gStringVar4, sInfo->statId, sInfo->enhancements[sInfo->statId]);
|
||||
PrintMenuWindowText(gStringVar4);
|
||||
CopyWindowToVram(WIN_TEXT, 2);
|
||||
CopyWindowToVram(WIN_TEXT, COPYWIN_GFX);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
@@ -954,14 +954,14 @@ static void PrintWontEatAnymore(void)
|
||||
DrawTextBorderOuter(WIN_TEXT, 151, 14);
|
||||
AddTextPrinterParameterized(WIN_TEXT, FONT_NORMAL, gText_WontEatAnymore, 0, 1, 0, NULL);
|
||||
PutWindowTilemap(WIN_TEXT);
|
||||
CopyWindowToVram(WIN_TEXT, 3);
|
||||
CopyWindowToVram(WIN_TEXT, COPYWIN_FULL);
|
||||
}
|
||||
|
||||
static void EraseMenuWindow(void)
|
||||
{
|
||||
rbox_fill_rectangle(WIN_TEXT);
|
||||
ClearWindowTilemap(WIN_TEXT);
|
||||
CopyWindowToVram(WIN_TEXT, 3);
|
||||
CopyWindowToVram(WIN_TEXT, COPYWIN_FULL);
|
||||
}
|
||||
|
||||
static void PrintMenuWindowText(const u8 *message)
|
||||
@@ -1399,13 +1399,13 @@ static void UpdateMonInfoText(u16 loadId, bool8 firstPrint)
|
||||
|
||||
if (firstPrint)
|
||||
{
|
||||
CopyWindowToVram(WIN_NAME, 3);
|
||||
CopyWindowToVram(WIN_NATURE, 3);
|
||||
CopyWindowToVram(WIN_NAME, COPYWIN_FULL);
|
||||
CopyWindowToVram(WIN_NATURE, COPYWIN_FULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
CopyWindowToVram(WIN_NAME, 2);
|
||||
CopyWindowToVram(WIN_NATURE, 2);
|
||||
CopyWindowToVram(WIN_NAME, COPYWIN_GFX);
|
||||
CopyWindowToVram(WIN_NATURE, COPYWIN_GFX);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user