diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2023-03-19 06:48:49 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-20 00:48:49 +1100 |
| commit | 03c8d46ed26a7a67c4f97efa22e5bc50542af493 (patch) | |
| tree | 241f42c063cfc0088a380305f3fab8a1d3295fcb /src/code/PreRender.c | |
| parent | 6ff77ab09258c4f19a5336c66f8b9cdb7a90fcb5 (diff) | |
Slowly Cleanup (#1213)
* Add slowly.h
* Init and destroy
* File header
Diffstat (limited to 'src/code/PreRender.c')
| -rw-r--r-- | src/code/PreRender.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/code/PreRender.c b/src/code/PreRender.c index 247325251..16ae999c5 100644 --- a/src/code/PreRender.c +++ b/src/code/PreRender.c @@ -1,4 +1,5 @@ #include "global.h" +#include "slowly.h" #include "stack.h" /** @@ -411,7 +412,7 @@ void PreRender_ApplyFilters(PreRender* this) { } } -extern SlowlyTask D_801F6E00; +extern SlowlyMgr sSlowlyMgr; extern s32 D_801F6FC0; extern StackEntry sSlowlyStackInfo; extern STACK(sSlowlyStack, 0x1000); @@ -423,12 +424,12 @@ void PreRender_ApplyFiltersSlowlyInit(PreRender* this) { if ((this->cvgSave != NULL) && (this->fbufSave != NULL)) { if (D_801F6FC0) { StackCheck_Cleanup(&sSlowlyStackInfo); - Slowly_Stop(&D_801F6E00); + Slowly_Destroy(&sSlowlyMgr); } this->unk_4D = 1; StackCheck_Init(&sSlowlyStackInfo, sSlowlyStack, STACK_TOP(sSlowlyStack), 0, 0x100, "slowly"); - Slowly_Start(&D_801F6E00, STACK_TOP(sSlowlyStack), PreRender_ApplyFilters, this, NULL); + Slowly_Init(&sSlowlyMgr, STACK_TOP(sSlowlyStack), (void*)PreRender_ApplyFilters, this, NULL); D_801F6FC0 = true; } } @@ -439,7 +440,7 @@ void PreRender_ApplyFiltersSlowlyInit(PreRender* this) { void PreRender_ApplyFiltersSlowlyDestroy(PreRender* this) { if (D_801F6FC0) { StackCheck_Cleanup(&sSlowlyStackInfo); - Slowly_Stop(&D_801F6E00); + Slowly_Destroy(&sSlowlyMgr); D_801F6FC0 = false; } } |
