WineD3D: BltFast/BltOverride color keying

Roderick Colenbrander thunderbird2k at gmx.net
Wed Jul 26 14:52:34 CDT 2006


Hi,

This patch adds color keying support to *_BltOverride. It required changes to *_BltFast to properly pass 'BLT' flags instead of 'BLTFAST' to *_BltOverride. Next it adds SRC/DEST color keying to *_BltOverride.

Further to get color keying working at all it fixed a small error in LoadTexture which I paste here because it is hard to spot in the patch. Right now a check in there looks like:
(This->Flags & SFLAG_GLCKEY && !(This->CKeyFlags & DDSD_CKSRCBLT)) ||
/* Reload: vice versa  OR */
(!(This->Flags & SFLAG_GLCKEY) && !This->CKeyFlags & DDSD_CKSRCBLT) ||

The third '!' was removed as indicated by the comment this fixes color keying. Next to this some gcc warning was silenced by adding some more braces.

Regards,
Roderick Colenbrander

-- 


Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wined3d_bltfast_colorkeying.patch
Type: text/x-diff
Size: 4328 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060726/6ee1b3ba/wined3d_bltfast_colorkeying.bin


More information about the wine-patches mailing list