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

TETRAEDGE: Fix TeImage output on big-endian hosts #5035

Merged

Conversation

dwatteau
Copy link
Contributor

@dwatteau dwatteau commented May 22, 2023

This appears to fix the following kind of output for the menus of Syberia on big-endian hosts.

Tested with the Macintosh release from GOG, on a PowerPC G4. Mostly tested with Syberia 2, since Syberia 1 has a very low framerate on this device, for some other reason.

Submitted as a PR, because I'm not very familiar with the game or with the proper way of dealing with Graphics::PixelFormat. I just "stole" this from what the Grim engine does in a similar case.

(Please don't close the Trac issue above, as the Theora video slowness issue is still unresolved at the moment.)

@dwatteau dwatteau requested a review from mduggan May 22, 2023 16:41
@dwatteau dwatteau force-pushed the fix/tetraedge-teimage-big-endian-hosts branch from 6f614d0 to 4651719 Compare May 22, 2023 18:18
@mduggan
Copy link
Contributor

mduggan commented May 23, 2023

I'm happy merging this if it fixes the rendering - although we may need to further tweak if the performance is the problem. I think this will result in some reordering happening during copying and it's possible that it could be avoided by changing some other part of the code. We can look at that separately though.

@mduggan mduggan merged commit ad64bb6 into scummvm:master May 23, 2023
8 checks passed
@dwatteau dwatteau deleted the fix/tetraedge-teimage-big-endian-hosts branch May 23, 2023 10: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
3 participants