Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port render_text.s from Diamond, decompile diffs #335

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

PikalaxALT
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@adrienntindall adrienntindall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor things + merge main into the branch


static BOOL sub_020021A0(TextPrinterSubStruct *subStruct);
static BOOL sub_02002220(void);
static void TextPrinterInitDownArrowCounters(TextPrinter *printer);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TextPrinter -> TextPrinter_

return RENDER_UPDATE;
}

GlyphInfo *r5 = FontID_TryLoadGlyph(subStruct->fontId, currentChar);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r5 -> glyph(Info)

u8 height = GetWindowHeight(printer->template.window) - 2;
u16 r6 = unk00;

FillBgTilemapRect(printer->template.window->bgConfig,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason why this function doesn't just take (BgConfig, BgId, u16, u8, u8, etc)? Seems like that's the case rather than casting explicitly

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this was ported from diamond without modifications

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants