Add COPYWIN constants
This commit is contained in:
+10
-10
@@ -306,7 +306,7 @@ static void PrintNumPlayersWaitingForMsg(u8 windowId, u8 capacityCode, u8 string
|
||||
break;
|
||||
}
|
||||
|
||||
CopyWindowToVram(windowId, 2);
|
||||
CopyWindowToVram(windowId, COPYWIN_GFX);
|
||||
}
|
||||
|
||||
static void PrintPlayerNameAndIdOnWindow(u8 windowId)
|
||||
@@ -434,7 +434,7 @@ static void Task_TryBecomeLinkLeader(u8 taskId)
|
||||
FillWindowPixelBuffer(data->bButtonCancelWindowId, PIXEL_FILL(2));
|
||||
PrintUnionRoomText(data->bButtonCancelWindowId, 0, sText_BButtonCancel, 8, 1, UR_COLOR_CANCEL);
|
||||
PutWindowTilemap(data->bButtonCancelWindowId);
|
||||
CopyWindowToVram(data->bButtonCancelWindowId, 2);
|
||||
CopyWindowToVram(data->bButtonCancelWindowId, COPYWIN_GFX);
|
||||
|
||||
DrawStdWindowFrame(data->listWindowId, FALSE);
|
||||
gMultiuseListMenuTemplate = sListMenuTemplate_PossibleGroupMembers;
|
||||
@@ -443,7 +443,7 @@ static void Task_TryBecomeLinkLeader(u8 taskId)
|
||||
|
||||
DrawStdWindowFrame(data->nPlayerModeWindowId, FALSE);
|
||||
PutWindowTilemap(data->nPlayerModeWindowId);
|
||||
CopyWindowToVram(data->nPlayerModeWindowId, 2);
|
||||
CopyWindowToVram(data->nPlayerModeWindowId, COPYWIN_GFX);
|
||||
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
data->playerCount = 1;
|
||||
@@ -1014,7 +1014,7 @@ static void Task_TryJoinLinkGroup(u8 taskId)
|
||||
FillWindowPixelBuffer(data->bButtonCancelWindowId, PIXEL_FILL(2));
|
||||
PrintUnionRoomText(data->bButtonCancelWindowId, 0, sText_ChooseJoinCancel, 8, 1, UR_COLOR_CANCEL);
|
||||
PutWindowTilemap(data->bButtonCancelWindowId);
|
||||
CopyWindowToVram(data->bButtonCancelWindowId, 2);
|
||||
CopyWindowToVram(data->bButtonCancelWindowId, COPYWIN_GFX);
|
||||
|
||||
DrawStdWindowFrame(data->listWindowId, FALSE);
|
||||
gMultiuseListMenuTemplate = sListMenuTemplate_UnionRoomGroups;
|
||||
@@ -1024,7 +1024,7 @@ static void Task_TryJoinLinkGroup(u8 taskId)
|
||||
DrawStdWindowFrame(data->playerNameAndIdWindowId, FALSE);
|
||||
PutWindowTilemap(data->playerNameAndIdWindowId);
|
||||
PrintPlayerNameAndIdOnWindow(data->playerNameAndIdWindowId);
|
||||
CopyWindowToVram(data->playerNameAndIdWindowId, 2);
|
||||
CopyWindowToVram(data->playerNameAndIdWindowId, COPYWIN_GFX);
|
||||
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
data->leaderId = 0;
|
||||
@@ -2131,7 +2131,7 @@ static void Task_CardOrNewsWithFriend(u8 taskId)
|
||||
FillWindowPixelBuffer(data->playerNameAndIdWindowId, PIXEL_FILL(1));
|
||||
PutWindowTilemap(data->playerNameAndIdWindowId);
|
||||
PrintPlayerNameAndIdOnWindow(data->playerNameAndIdWindowId);
|
||||
CopyWindowToVram(data->playerNameAndIdWindowId, 2);
|
||||
CopyWindowToVram(data->playerNameAndIdWindowId, COPYWIN_GFX);
|
||||
|
||||
CopyBgTilemapBufferToVram(0);
|
||||
data->leaderId = 0;
|
||||
@@ -3637,7 +3637,7 @@ static s8 UnionRoomHandleYesNo(u8 *state, bool32 noDraw)
|
||||
case 1:
|
||||
if (noDraw)
|
||||
{
|
||||
sub_8198C78();
|
||||
EraseYesNoWindow();
|
||||
*state = 0;
|
||||
return -3;
|
||||
}
|
||||
@@ -3658,7 +3658,7 @@ static u8 CreateTradeBoardWindow(const struct WindowTemplate * template)
|
||||
DrawStdWindowFrame(windowId, FALSE);
|
||||
FillWindowPixelBuffer(windowId, PIXEL_FILL(15));
|
||||
PrintUnionRoomText(windowId, 1, sText_NameWantedOfferLv, 8, 1, UR_COLOR_TRADE_BOARD_OTHER);
|
||||
CopyWindowToVram(windowId, 2);
|
||||
CopyWindowToVram(windowId, COPYWIN_GFX);
|
||||
PutWindowTilemap(windowId);
|
||||
return windowId;
|
||||
}
|
||||
@@ -3689,7 +3689,7 @@ static s32 ListMenuHandler_AllItemsAvailable(u8 *state, u8 *windowId, u8 *listMe
|
||||
gMultiuseListMenuTemplate = *menuTemplate;
|
||||
gMultiuseListMenuTemplate.windowId = *windowId;
|
||||
*listMenuId = ListMenuInit(&gMultiuseListMenuTemplate, 0, 0);
|
||||
CopyWindowToVram(*windowId, TRUE);
|
||||
CopyWindowToVram(*windowId, COPYWIN_MAP);
|
||||
(*state)++;
|
||||
break;
|
||||
case 1:
|
||||
@@ -3736,7 +3736,7 @@ static s32 TradeBoardMenuHandler(u8 *state, u8 *mainWindowId, u8 *listMenuId, u8
|
||||
(*state)++;
|
||||
break;
|
||||
case 1:
|
||||
CopyWindowToVram(*mainWindowId, TRUE);
|
||||
CopyWindowToVram(*mainWindowId, COPYWIN_MAP);
|
||||
(*state)++;
|
||||
break;
|
||||
case 2:
|
||||
|
||||
Reference in New Issue
Block a user