Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a8ab5694
Commit
a8ab5694
authored
Sep 30, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use wined3d_texture_set_color_key() to manipulate the color-key in surface_blt_special().
parent
b3ebdd90
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
surface.c
dlls/wined3d/surface.c
+4
-5
No files found.
dlls/wined3d/surface.c
View file @
a8ab5694
...
...
@@ -4116,13 +4116,12 @@ static HRESULT surface_blt_special(struct wined3d_surface *dst_surface, const RE
else
if
(
flags
&
WINEDDBLT_KEYSRCOVERRIDE
)
{
/* Use color key from DDBltFx */
src_surface
->
container
->
color_key_flags
|=
WINEDDSD_CKSRCBLT
;
src_surface
->
container
->
src_blt_color_key
=
DDBltFx
->
ddckSrcColorkey
;
wined3d_texture_set_color_key
(
src_surface
->
container
,
WINEDDSD_CKSRCBLT
,
&
DDBltFx
->
ddckSrcColorkey
);
}
else
{
/* Do not use color key */
src_surface
->
container
->
color_key_flags
&=
~
WINEDDSD_CKSRCBLT
;
wined3d_texture_set_color_key
(
src_surface
->
container
,
WINEDDSD_CKSRCBLT
,
NULL
)
;
}
surface_blt_to_drawable
(
device
,
filter
,
...
...
@@ -4130,8 +4129,8 @@ static HRESULT surface_blt_special(struct wined3d_surface *dst_surface, const RE
src_surface
,
src_rect
,
dst_surface
,
dst_rect
);
/* Restore the color key parameters */
src_surface
->
container
->
color_key_flags
=
old_color_key_flags
;
src_surface
->
container
->
src_blt_color_key
=
old_blt_key
;
wined3d_texture_set_color_key
(
src_surface
->
container
,
WINEDDSD_CKSRCBLT
,
(
old_color_key_flags
&
WINEDDSD_CKSRCBLT
)
?
&
old_blt_key
:
NULL
)
;
surface_validate_location
(
dst_surface
,
dst_surface
->
container
->
resource
.
draw_binding
);
surface_invalidate_location
(
dst_surface
,
~
dst_surface
->
container
->
resource
.
draw_binding
);
...
...
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