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
230785dc
Commit
230785dc
authored
Jul 29, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 29, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Force alpha to 1.0f for clears.
parent
c4503779
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
render_target.c
dlls/d2d1/render_target.c
+6
-2
No files found.
dlls/d2d1/render_target.c
View file @
230785dc
...
...
@@ -1133,6 +1133,7 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_PopAxisAlignedClip(ID2D1Rend
static
void
STDMETHODCALLTYPE
d2d_d3d_render_target_Clear
(
ID2D1RenderTarget
*
iface
,
const
D2D1_COLOR_F
*
color
)
{
struct
d2d_d3d_render_target
*
render_target
=
impl_from_ID2D1RenderTarget
(
iface
);
D2D1_COLOR_F
c
=
{
0
.
0
f
,
0
.
0
f
,
0
.
0
f
,
0
.
0
f
};
D3D10_SUBRESOURCE_DATA
buffer_data
;
D3D10_BUFFER_DESC
buffer_desc
;
ID3D10Buffer
*
vs_cb
,
*
ps_cb
;
...
...
@@ -1162,8 +1163,11 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_Clear(ID2D1RenderTarget *ifa
return
;
}
buffer_desc
.
ByteWidth
=
sizeof
(
*
color
);
buffer_data
.
pSysMem
=
color
;
if
(
color
)
c
=
*
color
;
c
.
a
=
1
.
0
f
;
buffer_desc
.
ByteWidth
=
sizeof
(
c
);
buffer_data
.
pSysMem
=
&
c
;
if
(
FAILED
(
hr
=
ID3D10Device_CreateBuffer
(
render_target
->
device
,
&
buffer_desc
,
&
buffer_data
,
&
ps_cb
)))
{
...
...
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