OpenSWE1R / openswe1r

An Open-Source port of the 1999 Game "Star Wars Episode 1: Racer"
https://openswe1r.github.io/
GNU General Public License v2.0
313 stars 26 forks source link

Sky in Boonta Classic is broken #118

Open JayFoxRox opened 6 years ago

JayFoxRox commented 6 years ago

Broken sky

I've checked this with apitrace, and it uses a 16x16 texture RGBA8, where the left half is 0xFFFFFFFF and the right half is 0x77777777.

0x77 is the default color of a surface in OpenSWE1R after locking a surface through IDirectDrawSurface4::Lock (set using memset). The game probably expects a different surface type or surface size when modifying that surface. It's also possible that the surface should have been set to a specific color before.

It's also possible that this is related to texture blending: the texture might simply be ignored when drawing.