for pc port

This commit is contained in:
Niko 2023-11-17 11:28:19 -05:00
parent daa8853a70
commit 585dee76d8
3 changed files with 6 additions and 4 deletions

View File

@ -9,7 +9,7 @@ void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int size
if ((sizeX & 0xffff) == 0)
{
width = DecalFont_GetLineWidth(comment, fontType);
width = DECOMP_DecalFont_GetLineWidth(comment, fontType);
sizeX = width + 0xc;
}
@ -23,7 +23,7 @@ void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int size
sizeY = (u_int)data.PlayerCommentBoxParams[fontType];
// Draw string
DecalFont_DrawLine(comment,
DECOMP_DecalFont_DrawLine(comment,
startX, (data.PlayerCommentBoxParams[4 + fontType] + startY),
fontType, textFlag);
@ -32,5 +32,5 @@ void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int size
r.y = startY;
r.w = sizeX;
r.h = sizeY;
MENUBOX_DrawInnerRect(&r, boxFlag, sdata->gGT->backBuffer->otMem.startPlusFour);
DECOMP_MENUBOX_DrawInnerRect(&r, boxFlag, sdata->gGT->backBuffer->otMem.startPlusFour);
}

View File

@ -135,6 +135,8 @@ int DECOMP_MEMPACK_GetFreeBytes();
void DECOMP_MEMPACK_PopState();
int DECOMP_MEMPACK_PushState();
void DECOMP_MENUBOX_DrawQuip(char *comment, short startX, int startY, u_int sizeX, short fontType,
int textFlag, short boxFlag);
void DECOMP_MENUBOX_DrawInnerRect(RECT* r, int x, void* ot);
void DECOMP_MENUBOX_DrawSelf(struct MenuBox* mb, int param_2, short param_3, short width);
void DECOMP_MENUBOX_DrawPolyGT4(struct Icon* icon, short posX, short posY, struct PrimMem* primMem, u_long* ot, u_int color0, u_int color1, u_int color2, u_int color3, char transparency, short scale);

View File

@ -180,7 +180,7 @@
#include "../decompile/General/MenuBox/MENUBOX_DrawRwdTriangle.c"
#include "../decompile/General/MenuBox/MENUBOX_DrawOuterRect_LowLevel.c"
#include "../decompile/General/MenuBox/MENUBOX_DrawOuterRect_HighLevel.c"
// MENUBOX_DrawQuip.c (wip)
#include "../decompile/General/MenuBox/MENUBOX_DrawQuip.c"
#include "../decompile/General/MenuBox/MENUBOX_DrawInnerRect.c"
#include "../decompile/General/MenuBox/MENUBOX_DrawFullRect.c"
#include "../decompile/General/MenuBox/MENUBOX_GetHeight.c"