mirror of https://github.com/zeldaret/tp.git
f_pc_draw_priority: Type fix
This commit is contained in:
parent
b45b95c3be
commit
98b84ea0fa
|
@ -8,7 +8,7 @@ typedef struct draw_priority_class {
|
|||
s16 mPriority;
|
||||
} draw_priority_class;
|
||||
|
||||
s32 fpcDwPi_Get(const draw_priority_class* pDwPi);
|
||||
s16 fpcDwPi_Get(const draw_priority_class* pDwPi);
|
||||
void fpcDwPi_Set(draw_priority_class* pDwPi, s16 p);
|
||||
void fpcDwPi_Init(draw_priority_class* pDwPi, s16 p);
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ typedef struct leaf_process_profile_definition {
|
|||
/* 0x3C */ leafdraw_method_class* mMethods;
|
||||
} leaf_process_profile_definition;
|
||||
|
||||
s32 fpcLf_GetPriority(const leafdraw_class* pLeaf);
|
||||
s16 fpcLf_GetPriority(const leafdraw_class* pLeaf);
|
||||
s32 fpcLf_DrawMethod(leafdraw_method_class* pMthd, void* pUserData);
|
||||
s32 fpcLf_Draw(leafdraw_class* pMthd);
|
||||
s32 fpcLf_Execute(leafdraw_class* pLeaf);
|
||||
|
|
|
@ -340,7 +340,7 @@ static int fopAc_Create(void* actor) {
|
|||
|
||||
int ret = fpcMtd_Create((process_method_class*)ac->mSubMtd, ac);
|
||||
if (ret == 4) {
|
||||
s16 priority = fpcLf_GetPriority(ac);
|
||||
s32 priority = fpcLf_GetPriority(ac);
|
||||
fopDwTg_ToDrawQ(&ac->mDwTg, priority);
|
||||
} else if (ret == 5) {
|
||||
fopAcM_OnCondition(ac, 0x10);
|
||||
|
|
|
@ -70,10 +70,9 @@ static int fopCam_Create(void* i_actorP) {
|
|||
}
|
||||
|
||||
int ret = fpcMtd_Create(&camera->mpMtd->mBase, camera);
|
||||
|
||||
if (ret == 4) {
|
||||
s16 prior = fpcLf_GetPriority(camera);
|
||||
fopDwTg_ToDrawQ(&camera->mCreateTag, prior);
|
||||
if (ret == cPhs_COMPLEATE_e) {
|
||||
s32 priority = fpcLf_GetPriority(camera);
|
||||
fopDwTg_ToDrawQ(&camera->mCreateTag, priority);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
/* 80021308-80021310 0008+00 s=0 e=1 z=0 None .text fpcDwPi_Get__FPC19draw_priority_class */
|
||||
s32 fpcDwPi_Get(const draw_priority_class* pDwPi) {
|
||||
s16 fpcDwPi_Get(const draw_priority_class* pDwPi) {
|
||||
return pDwPi->mPriority;
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
//
|
||||
|
||||
/* 80021A00-80021A24 0024+00 s=0 e=4 z=2 None .text fpcLf_GetPriority__FPC14leafdraw_class */
|
||||
s32 fpcLf_GetPriority(const leafdraw_class* pLeaf) {
|
||||
s16 fpcLf_GetPriority(const leafdraw_class* pLeaf) {
|
||||
return fpcDwPi_Get(&pLeaf->mDwPi);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue