Skip to content

Commit

Permalink
procui: swap tickDelay and priority args in callbacks (#1408)
Browse files Browse the repository at this point in the history
  • Loading branch information
capitalistspz authored Nov 9, 2024
1 parent 813f914 commit 4ac1ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cafe/OS/libs/proc_ui/proc_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ namespace proc_ui
}
if(callbackType != ProcUICallbackId::AcquireForeground)
priority = -priority;
AddCallbackInternal(funcPtr, userParam, priority, 0, s_CallbackTables[stdx::to_underlying(callbackType)][coreIndex]);
AddCallbackInternal(funcPtr, userParam, 0, priority, s_CallbackTables[stdx::to_underlying(callbackType)][coreIndex]);
}

void ProcUIRegisterCallback(ProcUICallbackId callbackType, void* funcPtr, void* userParam, sint32 priority)
Expand All @@ -437,7 +437,7 @@ namespace proc_ui

void ProcUIRegisterBackgroundCallback(void* funcPtr, void* userParam, uint64 tickDelay)
{
AddCallbackInternal(funcPtr, userParam, 0, tickDelay, s_backgroundCallbackList);
AddCallbackInternal(funcPtr, userParam, tickDelay, 0, s_backgroundCallbackList);
}

void FreeCallbackChain(ProcUICallbackList& callbackList)
Expand Down

0 comments on commit 4ac1ab1

Please sign in to comment.