Skip to content

[Kameda] Add K2DPicture class implementation - #54

Open
joakim-d wants to merge 1 commit into
doldecomp:mainfrom
joakim-d:reverse_k2dpicture
Open

[Kameda] Add K2DPicture class implementation#54
joakim-d wants to merge 1 commit into
doldecomp:mainfrom
joakim-d:reverse_k2dpicture

Conversation

@joakim-d

@joakim-d joakim-d commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Add K2DPicture class implementation

@joakim-d joakim-d changed the title [Kameda] Add K2DPicture class implementation [DRAFT][Kameda] Add K2DPicture class implementation Jul 26, 2026
@decomp-dev

decomp-dev Bot commented Jul 26, 2026

Copy link
Copy Markdown

Report for MarioClub_us (06ef8fc - 9c95db1)

📈 Matched code: 46.11% (+0.06%, +2048 bytes)
📈 Linked code: 40.44% (+0.06%, +2048 bytes)
📈 Matched data: 23.95% (+0.00%, +16 bytes)
📈 Linked data: 31.22% (+0.00%, +16 bytes)

✅ 6 new matches
Unit Item Bytes Before After
main/Kameda/K2DPicture K2DPicture::setTevModeK2D() +964 0.41% 100.00%
main/Kameda/K2DPicture K2DPicture::drawK2D(float, float, float, float, bool) +525 0.76% 100.00%
main/Kameda/K2DPicture K2DPicture::getNewColor(JUtility::TColor*) +313 1.27% 100.00%
main/Kameda/K2DPicture K2DPicture::makeMatrix(float, float) +232 1.69% 100.00%
main/Kameda/K2DPicture .sdata +8 0.00% 100.00%
main/Kameda/K2DPicture .sdata2 +8 0.00% 100.00%

@joakim-d
joakim-d force-pushed the reverse_k2dpicture branch from a338e9f to a58825e Compare August 2, 2026 16:15
@joakim-d
joakim-d marked this pull request as ready for review August 2, 2026 16:17
@joakim-d joakim-d changed the title [DRAFT][Kameda] Add K2DPicture class implementation [Kameda] Add K2DPicture class implementation Aug 2, 2026
Comment thread src/Kameda/K2DPicture.cpp Outdated
Comment on lines +172 to +174
} else {
if (!useBlackAndWhite)
{

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

no need for a separate else scope here

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Do you mean that I should change the branching like so ?

if (!useColorBlend) {
    if (!useBlackAndWhite) {

    } else {

    }
} else if (!useBlackAndWhite) {

} else {

}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I changed this bit, I hope it's what you meant :)

@joakim-d
joakim-d force-pushed the reverse_k2dpicture branch from a58825e to 9c95db1 Compare August 2, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants