Decompile textRender

This commit is contained in:
Ryan Dwyer 2022-07-03 16:12:28 +10:00
parent db3d959ae8
commit 6d1c7bb747
3 changed files with 152 additions and 1121 deletions

File diff suppressed because it is too large Load Diff

View File

@ -43,9 +43,8 @@ void func0f156024(s32 arg0);
void func0f156030(u32 colour);
Gfx *textRenderProjected(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *font1, struct font *font2, s32 colour, s16 width, s16 height, s32 arg9, u32 arg10);
Gfx *func0f1566cc(Gfx *gdl, u32 arg1, u32 arg2);
u32 func0f156790(void);
u32 func0f156a24(void);
Gfx *textRender(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *font1, struct font *font2, u32 arg6, u32 colour, s16 arg8, s16 arg9, u32 arg10, u32 arg11);
Gfx *textRender(Gfx *gdl, s32 *x, s32 *y, char *text, struct fontchar *font1, struct font *font2, u32 arg6, u32 colour, s32 arg8, s32 arg9, u32 arg10, s32 arg11);
void textMeasure(s32 *textheight, s32 *textwidth, char *text, struct fontchar *font1, struct font *font2, s32 lineheight);
void textWrap(s32 width, char *in, char *out, struct fontchar *font1, struct font *font2);

View File

@ -5826,17 +5826,13 @@ struct escastepkeyframe {
struct fontchar {
u8 index;
s8 baseline;
#if VERSION == VERSION_JPN_FINAL
s8 unk02;
u8 height; // unsure
u8 width;
u8 unk04; // unsure
#else
u8 index2;
#endif
s8 baseline;
u8 height;
u8 width;
u32 unk04;
#endif
u8 unk04;
u8 *pixeldata;
};