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
2af8e243
Commit
2af8e243
authored
Apr 15, 2015
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 15, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Add opacity support to bitmap brushes.
parent
a7b2f5e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
render_target.c
dlls/d2d1/render_target.c
+23
-10
No files found.
dlls/d2d1/render_target.c
View file @
2af8e243
...
@@ -650,6 +650,7 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillRectangle(ID2D1RenderTar
...
@@ -650,6 +650,7 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillRectangle(ID2D1RenderTar
transform
.
_22
=
b
.
_11
/
d
;
transform
.
_22
=
b
.
_11
/
d
;
transform
.
_32
=
-
(
b
.
_11
*
b
.
_32
-
b
.
_31
*
b
.
_12
)
/
d
;
transform
.
_32
=
-
(
b
.
_11
*
b
.
_32
-
b
.
_31
*
b
.
_12
)
/
d
;
}
}
transform
.
pad1
=
brush_impl
->
opacity
;
buffer_desc
.
ByteWidth
=
sizeof
(
transform
);
buffer_desc
.
ByteWidth
=
sizeof
(
transform
);
buffer_data
.
pSysMem
=
&
transform
;
buffer_data
.
pSysMem
=
&
transform
;
...
@@ -1396,27 +1397,39 @@ HRESULT d2d_d3d_render_target_init(struct d2d_d3d_render_target *render_target,
...
@@ -1396,27 +1397,39 @@ HRESULT d2d_d3d_render_target_init(struct d2d_d3d_render_target *render_target,
{
{
#if 0
#if 0
float3x2 transform;
float3x2 transform;
float opacity;
SamplerState s;
SamplerState s;
Texture2D t;
Texture2D t;
float4 main(float4 position : SV_POSITION) : SV_Target
float4 main(float4 position : SV_POSITION) : SV_Target
{
{
return t.Sample(s, mul(float3(position.xy, 1.0), transform));
float2 texcoord;
float4 ret;
texcoord.x = position.x * transform._11 + position.y * transform._21 + transform._31;
texcoord.y = position.x * transform._12 + position.y * transform._22 + transform._32;
ret = t.Sample(s, texcoord);
ret.a *= opacity;
return ret;
}
}
#endif
#endif
0x43425844
,
0x
20fce5be
,
0x138fa37f
,
0x9554f03f
,
0x3dbe9c02
,
0x00000001
,
0x00000184
,
0x00000003
,
0x43425844
,
0x
9a5f9280
,
0xa5351c23
,
0x15d6e760
,
0xce35bcc3
,
0x00000001
,
0x000001d0
,
0x00000003
,
0x0000002c
,
0x00000060
,
0x00000094
,
0x4e475349
,
0x0000002c
,
0x00000001
,
0x00000008
,
0x00000020
,
0x0000002c
,
0x00000060
,
0x00000094
,
0x4e475349
,
0x0000002c
,
0x00000001
,
0x00000008
,
0x00000020
,
0x00000000
,
0x00000001
,
0x00000003
,
0x00000000
,
0x0000030f
,
0x505f5653
,
0x5449534f
,
0x004e4f49
,
0x00000000
,
0x00000001
,
0x00000003
,
0x00000000
,
0x0000030f
,
0x505f5653
,
0x5449534f
,
0x004e4f49
,
0x4e47534f
,
0x0000002c
,
0x00000001
,
0x00000008
,
0x00000020
,
0x00000000
,
0x00000000
,
0x00000003
,
0x4e47534f
,
0x0000002c
,
0x00000001
,
0x00000008
,
0x00000020
,
0x00000000
,
0x00000000
,
0x00000003
,
0x00000000
,
0x0000000f
,
0x545f5653
,
0x65677261
,
0xabab0074
,
0x52444853
,
0x00000
0e8
,
0x00000040
,
0x00000000
,
0x0000000f
,
0x545f5653
,
0x65677261
,
0xabab0074
,
0x52444853
,
0x00000
134
,
0x00000040
,
0x000000
3a
,
0x04000059
,
0x00208e46
,
0x00000000
,
0x00000002
,
0x0300005a
,
0x00106000
,
0x00000000
,
0x000000
4d
,
0x04000059
,
0x00208e46
,
0x00000000
,
0x00000002
,
0x0300005a
,
0x00106000
,
0x00000000
,
0x04001858
,
0x00107000
,
0x00000000
,
0x00005555
,
0x04002064
,
0x00101032
,
0x00000000
,
0x00000001
,
0x04001858
,
0x00107000
,
0x00000000
,
0x00005555
,
0x04002064
,
0x00101032
,
0x00000000
,
0x00000001
,
0x03000065
,
0x001020f2
,
0x00000000
,
0x02000068
,
0x00000002
,
0x05000036
,
0x00100032
,
0x00000000
,
0x03000065
,
0x001020f2
,
0x00000000
,
0x02000068
,
0x00000001
,
0x0800000f
,
0x00100012
,
0x00000000
,
0x00101046
,
0x00000000
,
0x05000036
,
0x00100042
,
0x00000000
,
0x00004001
,
0x3f800000
,
0x08000010
,
0x00101046
,
0x00000000
,
0x00208046
,
0x00000000
,
0x00000000
,
0x08000000
,
0x00100012
,
0x00000000
,
0x00100012
,
0x00000001
,
0x00100246
,
0x00000000
,
0x00208246
,
0x00000000
,
0x00000000
,
0x08000010
,
0x0010000a
,
0x00000000
,
0x0020802a
,
0x00000000
,
0x00000000
,
0x0800000f
,
0x00100042
,
0x00000000
,
0x00100022
,
0x00000001
,
0x00100246
,
0x00000000
,
0x00208246
,
0x00000000
,
0x00000001
,
0x09000045
,
0x00101046
,
0x00000000
,
0x00208046
,
0x00000000
,
0x00000001
,
0x08000000
,
0x00100022
,
0x00000000
,
0x001020f2
,
0x00000000
,
0x00100046
,
0x00000001
,
0x00107e46
,
0x00000000
,
0x00106000
,
0x00000000
,
0x0010002a
,
0x00000000
,
0x0020802a
,
0x00000000
,
0x00000001
,
0x09000045
,
0x001000f2
,
0x00000000
,
0x0100003e
,
0x00100046
,
0x00000000
,
0x00107e46
,
0x00000000
,
0x00106000
,
0x00000000
,
0x08000038
,
0x00102082
,
0x00000000
,
0x0010003a
,
0x00000000
,
0x0020803a
,
0x00000000
,
0x00000001
,
0x05000036
,
0x00102072
,
0x00000000
,
0x00100246
,
0x00000000
,
0x0100003e
,
};
};
static
const
struct
static
const
struct
{
{
...
...
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