Skip to content

Tropico - hardware rendering mode yields corrupted graphics #109

Answered by elishacloud
Ligushka asked this question in Q&A
Discussion options

You must be logged in to vote

The issue is that the game completely ignores the pitch/stride sent by DirectDraw. In newer versions of Windows the surfaces are byte aligned for performance reasons and so the pitch may be larger than the width. In this case some of the game's video data is written to the unused part of the surface.

I added a quick fix for this by emulating the lock function and feeding the game a pitch that it is expecting.

Here is the updated build: dxwrapper.zip

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
3 replies
@Ligushka
Comment options

@Ligushka
Comment options

@elishacloud
Comment options

Comment options

You must be logged in to vote
7 replies
@elishacloud
Comment options

@msbr0815
Comment options

@elishacloud
Comment options

@msbr0815
Comment options

@elishacloud
Comment options

Answer selected by Ligushka
Comment options

You must be logged in to vote
2 replies
@elishacloud
Comment options

@Ligushka
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants