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

Vertexloader cleanups #213

Merged
merged 3 commits into from Apr 10, 2014
Merged

Conversation

jezze
Copy link
Contributor

@jezze jezze commented Mar 26, 2014

Just some minor cleanups I noticed could be done.

right = (p0.x > p1.x) ? p0.x : p1.x;
bottom = (p0.y > p1.y) ? p0.y : p1.y;
}
left = (p0.x < p1.x) ? p0.x : p1.x;

This comment was marked as off-topic.

This comment was marked as off-topic.

if (i1 & 1) { s = (s32)(c + roundUp); if (s >= 0 && s <= 479) left = 0; top = std::min(s, top); bottom = std::max(s, bottom); }
if (i1 & 2) { s = (s32)((-c / m) + roundUp); if (s >= 0 && s <= 607) top = 0; left = std::min(s, left); right = std::max(s, right); }
if (i1 & 4) { s = (s32)((m * 607) + c + roundUp); if (s >= 0 && s <= 479) right = 607; top = std::min(s, top); bottom = std::max(s, bottom); }
if (i1 & 8) { s = (s32)(((479 - c) / m) + roundUp); if (s >= 0 && s <= 607) bottom = 479; left = std::min(s, left); right = std::max(s, right); }

This comment was marked as off-topic.

This comment was marked as off-topic.

neobrain added a commit that referenced this pull request Apr 10, 2014
@neobrain neobrain merged commit cdf6172 into dolphin-emu:master Apr 10, 2014
@jezze jezze deleted the vertexloader-cleanups branch April 10, 2014 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants