mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 14:40:56 +00:00
ddraw: Properly set the color key in texture::load.
This commit is contained in:
parent
4f0f7dec99
commit
551c732d74
@ -4967,12 +4967,12 @@ static HRESULT WINAPI d3d_texture2_Load(IDirect3DTexture2 *iface, IDirect3DTextu
|
||||
{
|
||||
struct wined3d_mapped_rect src_rect, dst_rect;
|
||||
|
||||
/* Copy also the ColorKeying stuff */
|
||||
/* Copy the src blit color key if the source has one, don't erase
|
||||
* the destination's ckey if the source has none */
|
||||
if (src_desc->dwFlags & DDSD_CKSRCBLT)
|
||||
{
|
||||
dst_desc->dwFlags |= DDSD_CKSRCBLT;
|
||||
dst_desc->ddckCKSrcBlt.dwColorSpaceLowValue = src_desc->ddckCKSrcBlt.dwColorSpaceLowValue;
|
||||
dst_desc->ddckCKSrcBlt.dwColorSpaceHighValue = src_desc->ddckCKSrcBlt.dwColorSpaceHighValue;
|
||||
IDirectDrawSurface7_SetColorKey(&dst_surface->IDirectDrawSurface7_iface,
|
||||
DDCKEY_SRCBLT, &src_desc->ddckCKSrcBlt);
|
||||
}
|
||||
|
||||
/* Copy the main memory texture into the surface that corresponds
|
||||
|
Loading…
Reference in New Issue
Block a user