Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
a52b5847
Commit
a52b5847
authored
Aug 11, 2021
by
Ziqing Hui
Committed by
Alexandre Julliard
Aug 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1: Add D2D1Crop.
Signed-off-by:
Ziqing Hui
<
zhui@codeweavers.com
>
Signed-off-by:
Henri Verbeet
<
hverbeet@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cd1a612b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
effect.c
dlls/d2d1/effect.c
+2
-1
d2d1.c
dlls/d2d1/tests/d2d1.c
+1
-0
d2d1effects.idl
include/d2d1effects.idl
+8
-0
No files found.
dlls/d2d1/effect.c
View file @
a52b5847
...
...
@@ -24,7 +24,8 @@ static const struct d2d_effect_info builtin_effects[] =
{
{
&
CLSID_D2D12DAffineTransform
,
1
,
1
,
1
},
{
&
CLSID_D2D13DPerspectiveTransform
,
1
,
1
,
1
},
{
&
CLSID_D2D1Composite
,
2
,
1
,
0xffffffff
}
{
&
CLSID_D2D1Composite
,
2
,
1
,
0xffffffff
},
{
&
CLSID_D2D1Crop
,
1
,
1
,
1
},
};
static
inline
struct
d2d_effect
*
impl_from_ID2D1Effect
(
ID2D1Effect
*
iface
)
...
...
dlls/d2d1/tests/d2d1.c
View file @
a52b5847
...
...
@@ -9707,6 +9707,7 @@ static void test_effect(BOOL d3d11)
{
&
CLSID_D2D12DAffineTransform
,
1
,
1
,
1
},
{
&
CLSID_D2D13DPerspectiveTransform
,
1
,
1
,
1
},
{
&
CLSID_D2D1Composite
,
2
,
1
,
0xffffffff
},
{
&
CLSID_D2D1Crop
,
1
,
1
,
1
},
};
if
(
!
init_test_context
(
&
ctx
,
d3d11
))
...
...
include/d2d1effects.idl
View file @
a52b5847
...
...
@@ -19,6 +19,7 @@
cpp_quote
(
"DEFINE_GUID(CLSID_D2D12DAffineTransform, 0x6aa97485,0x6354,0x4cfc,0x90,0x8c,0xe4,0xa7,0x4f,0x62,0xc9,0x6c);"
)
cpp_quote
(
"DEFINE_GUID(CLSID_D2D13DPerspectiveTransform, 0xc2844d0b,0x3d86,0x46e7,0x85,0xba,0x52,0x6c,0x92,0x40,0xf3,0xfb);"
)
cpp_quote
(
"DEFINE_GUID(CLSID_D2D1Composite, 0x48fc9f51,0xf6ac,0x48f1,0x8b,0x58,0x3b,0x28,0xac,0x46,0xf7,0x6d);"
)
cpp_quote
(
"DEFINE_GUID(CLSID_D2D1Crop, 0xe23f7110,0x0e9a,0x4324,0xaf,0x47,0x6a,0x2c,0x0c,0x46,0xf3,0x5b);"
)
typedef
enum
D2D1_BORDER_MODE
{
...
...
@@ -75,3 +76,10 @@ typedef enum D2D1_COMPOSITE_PROP
D2D1_COMPOSITE_PROP_MODE
=
0
x0
,
D2D1_COMPOSITE_PROP_FORCE_DWORD
=
0
xffffffff
}
D2D1_COMPOSITE_PROP
;
typedef
enum
D2D1_CROP_PROP
{
D2D1_CROP_PROP_RECT
=
0
x0
,
D2D1_CROP_PROP_BORDER_MODE
=
0
x1
,
D2D1_CROP_PROP_FORCE_DWORD
=
0
xffffffff
}
D2D1_CROP_PROP
;
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