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

XFB width/height handling fixes #336

Merged
merged 3 commits into from May 5, 2014

Conversation

magumagu
Copy link
Contributor

@magumagu magumagu commented May 3, 2014

A couple fixes to help games which mess with the width/height of the XFB (in Real XFB mode). This doesn't implement horizontal scaling, so there will still be junk on the left side of the screen in games which use horizontal scaling, but this is a step in the right direction. Vertical scaling should work correctly, and games which displayed gibberish using RealXFB should at least display something recognizable.

(I'm still working on the horizontal scaling fix, but I want to make sure this part doesn't cause any regressions.)

@LasagnaPie
Copy link

Does this help Issue 7249
https://code.google.com/p/dolphin-emu/issues/detail?id=7249

@magumagu
Copy link
Contributor Author

magumagu commented May 3, 2014

I can't tell what settings the reporter of issue 7249 was using, and I don't have the game, so I don't know. Are you offering to help test? :-)

@LasagnaPie
Copy link

I was the reporter and i am willing to test

@magumagu
Copy link
Contributor Author

magumagu commented May 4, 2014

Okay... I took another look at that issue report, and if I'm understanding it correctly, it's probably not related. We can continue the discussion in issue 7249.

@@ -316,6 +316,15 @@ union UVIDTVStatus
};
};

union UVIHorizontalStepping {

This comment was marked as off-topic.

@neobrain
Copy link
Member

neobrain commented May 5, 2014

LGTM once the coding style issue and my other comment are addressed.

What we call "fbWidth" here is really the stride, but I'll fix that in a
followup.
We need to do this to correctly deal with games which dynamically change the
XFB width and height.
Matching the hardware more closely will hopefully make this code easier to
read.
@magumagu
Copy link
Contributor Author

magumagu commented May 5, 2014

Updated to address review comment.

neobrain added a commit that referenced this pull request May 5, 2014
@neobrain neobrain merged commit edbf90f into dolphin-emu:master May 5, 2014
@magumagu magumagu deleted the xfb-vertical-scale branch May 8, 2014 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants