[PATCH 2/5] ddraw: check if surface is a mipmap sublevel through caps in ddraw_surface7_GetPriority

Stefan Dösinger stefandoesinger at gmail.com
Wed Nov 4 06:29:53 CST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Am 2015-11-03 um 12:58 schrieb Stefan Dösinger:
> This will show different behavior on level 0 Y, Z and negative X
> cube map surfaces. (Positive X is the actual ddraw root surface).
> However, I vagely remember that native ddraw also misbehaved here,
> so the new behior is probably correct. I'll check with my
> SetColorKey tests and report back.
The behavior of your new code is correct, it matches that of windows.
You can set color keys (and presumably palettes, etc) on cube map
faces that aren't the root surface and aren't sublevels.

Feel free to use the attached test. It needs to be ported to ddraw4.c
and needs capability checks before creating a cube texture.

Cheers,
Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWOfo/AAoJEN0/YqbEcdMwMyYP/2Z7eH23h1V5S5K9eKid+I0A
z4cNoCHZbt74/jBcQ7HaN8NvMYxG0Oh3E6KvF76ru/X3ccFt9mtmH0zgnDc63Eh5
/fyEMReK6AbjxM7L+3l07jpDoASydx+8Gnbr1xLj5nlMBeK70eKOejTY57+m3RHz
zEJChDCO6B+1Era2QEFULCx/CSzLwdsujyxPeceT3gEpKCgQQBJ7mNE9/inwcwQf
uDdzoaTAfCoNHmzgtzmyF7Sy2yVKBSNPpw41z9ETfcqg736L+x0/vKMDSWuituL3
RxCWVG9CPOe4esrV/ECdLzQB1dllFRrr45KZ7L93SOs6YpFNrZ3bDczEMtNjvoqV
yr4HWBYOuwlGrvHbqI7W3Nvg/6AGThZJkPsM0cRHN8uB2eK0GU7mNhjpzaQ+2FED
e3bBc/HCFq32xo901ABxPKOzGCrqLYs5rN0S3bI4ysirXjoi6cdQ5MQS17OjpqKu
WvYFcYFVWxzUf3gEeIM1kN8QmEreAbueQCKSj9zJBbrdSfMgO01bxJqK1coI+k0F
k2dlYhN7iLE36w1m0cEzVzNWsqJoBJI0F/I3kwHFSXIc60jgUbDAEi9b1Hd8WP8D
MlZfSZKBCoQN7ZCHBE+uS1ssa/DsgD85HB5/0YkM9lM9+IXpD6Iyt4SuDCcM+RfH
iFrWyfuYtUvY07LPE1wX
=yh7m
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cubemap.diff
Type: text/x-diff
Size: 2937 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20151104/a2647f4b/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cubemap.diff.sig
Type: application/pgp-signature
Size: 543 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20151104/a2647f4b/attachment-0001.sig>


More information about the wine-devel mailing list