Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
551c732d
Commit
551c732d
authored
Jan 31, 2012
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jan 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Properly set the color key in texture::load.
parent
4f0f7dec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
surface.c
dlls/ddraw/surface.c
+4
-4
No files found.
dlls/ddraw/surface.c
View file @
551c732d
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment