diff options
author | PikalaxALT <PikalaxALT@gmail.com> | 2020-04-10 16:17:46 -0400 |
---|---|---|
committer | PikalaxALT <PikalaxALT@gmail.com> | 2020-04-10 16:17:46 -0400 |
commit | aea30489fc3994a856ba929d075ed762c7fb1967 (patch) | |
tree | 314df4c8afe5ef19243d63a3f7851f5e4c54fc9e /src/field_specials.c | |
parent | a205881ce2caa89a1b2690df9bd335201df2aeda (diff) |
Create COPYWIN defines for CopyWindowToVram calls
Diffstat (limited to 'src/field_specials.c')
-rw-r--r-- | src/field_specials.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/field_specials.c b/src/field_specials.c index 26a1d75e6..a127eb774 100644 --- a/src/field_specials.c +++ b/src/field_specials.c @@ -1104,7 +1104,7 @@ void DrawElevatorCurrentFloorWindow(void) strwidth = GetStringWidth(2, floorname, 0); AddTextPrinterParameterized(sElevatorCurrentFloorWindowId, 2, floorname, 56 - strwidth, 16, 0xFF, NULL); PutWindowTilemap(sElevatorCurrentFloorWindowId); - CopyWindowToVram(sElevatorCurrentFloorWindowId, 3); + CopyWindowToVram(sElevatorCurrentFloorWindowId, COPYWIN_BOTH); } } @@ -1365,7 +1365,7 @@ static void Task_CreateScriptListMenu(u8 taskId) Task_CreateMenuRemoveScrollIndicatorArrowPair(taskId); task->data[14] = ListMenuInit(&sFieldSpecialsListMenuTemplate, task->data[7], task->data[8]); PutWindowTilemap(task->data[13]); - CopyWindowToVram(task->data[13], 3); + CopyWindowToVram(task->data[13], COPYWIN_BOTH); gTasks[taskId].func = Task_ListMenuHandleInput; } @@ -1448,7 +1448,7 @@ static void Task_DestroyListMenu(u8 taskId) ClearStdWindowAndFrameToTransparent(task->data[13], TRUE); FillWindowPixelBuffer(task->data[13], PIXEL_FILL(0)); ClearWindowTilemap(task->data[13]); - CopyWindowToVram(task->data[13], 2); + CopyWindowToVram(task->data[13], COPYWIN_GFX); RemoveWindow(task->data[13]); DestroyTask(taskId); EnableBothScriptContexts(); |