KEMBAR78
GRAPHICS: Change pitch from int16 to int32 by tag2015 · Pull Request #5017 · scummvm/scummvm · GitHub
Skip to content

Conversation

@tag2015
Copy link
Contributor

@tag2015 tag2015 commented May 15, 2023

Chronicle of Innsmouth - Mountains of Madness allocates a very big (about 9000x300) surface used for a scrolling scene.
This causes pitch to overflow in Surface::create causing a segfault as reported in 14456

Note: this does not make the game playable (yet), as it uses a still unsupported plugin to play videos and do other graphics trickery.

This is required for games allocating very big surfaces
(e.g. 9000x300 in Chronicle of Innsmouth - Mountains of Madness)
@tag2015
Copy link
Contributor Author

tag2015 commented May 16, 2023

This also fixes "Herd is Coming" (demo available on steam), which shows the exact same issue.

@sev-
Copy link
Member

sev- commented May 20, 2023

Thanks!

@sev- sev- merged commit 421295b into scummvm:master May 20, 2023
@tag2015 tag2015 deleted the gfx_pitchfix branch May 21, 2023 09:37
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