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
bf0c621c
Commit
bf0c621c
authored
Jun 26, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jun 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/effect: Initial implementation of property access methods.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
216e56ac
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
155 additions
and
51 deletions
+155
-51
effect.c
dlls/d2d1/effect.c
+152
-50
d2d1.c
dlls/d2d1/tests/d2d1.c
+2
-1
d2d1_1.idl
include/d2d1_1.idl
+1
-0
No files found.
dlls/d2d1/effect.c
View file @
bf0c621c
This diff is collapsed.
Click to expand it.
dlls/d2d1/tests/d2d1.c
View file @
bf0c621c
...
@@ -11290,9 +11290,9 @@ static void test_effect_2d_affine(BOOL d3d11)
...
@@ -11290,9 +11290,9 @@ static void test_effect_2d_affine(BOOL d3d11)
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ID2D1Effect_SetInput
(
effect
,
0
,
(
ID2D1Image
*
)
bitmap
,
FALSE
);
ID2D1Effect_SetInput
(
effect
,
0
,
(
ID2D1Image
*
)
bitmap
,
FALSE
);
todo_wine
hr
=
ID2D1Effect_SetValue
(
effect
,
D2D1_2DAFFINETRANSFORM_PROP_TRANSFORM_MATRIX
,
hr
=
ID2D1Effect_SetValue
(
effect
,
D2D1_2DAFFINETRANSFORM_PROP_TRANSFORM_MATRIX
,
D2D1_PROPERTY_TYPE_MATRIX_3X2
,
(
const
BYTE
*
)
test
->
matrix
,
sizeof
(
*
test
->
matrix
));
D2D1_PROPERTY_TYPE_MATRIX_3X2
,
(
const
BYTE
*
)
test
->
matrix
,
sizeof
(
*
test
->
matrix
));
todo_wine
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ID2D1Effect_GetOutput
(
effect
,
&
output
);
ID2D1Effect_GetOutput
(
effect
,
&
output
);
...
@@ -11402,6 +11402,7 @@ static void test_effect_crop(BOOL d3d11)
...
@@ -11402,6 +11402,7 @@ static void test_effect_crop(BOOL d3d11)
ID2D1Effect_SetInput
(
effect
,
0
,
(
ID2D1Image
*
)
bitmap
,
FALSE
);
ID2D1Effect_SetInput
(
effect
,
0
,
(
ID2D1Image
*
)
bitmap
,
FALSE
);
hr
=
ID2D1Effect_SetValue
(
effect
,
D2D1_CROP_PROP_RECT
,
D2D1_PROPERTY_TYPE_VECTOR4
,
hr
=
ID2D1Effect_SetValue
(
effect
,
D2D1_CROP_PROP_RECT
,
D2D1_PROPERTY_TYPE_VECTOR4
,
(
const
BYTE
*
)
&
test
->
crop_rect
,
sizeof
(
test
->
crop_rect
));
(
const
BYTE
*
)
&
test
->
crop_rect
,
sizeof
(
test
->
crop_rect
));
todo_wine
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ID2D1Effect_GetOutput
(
effect
,
&
output
);
ID2D1Effect_GetOutput
(
effect
,
&
output
);
...
...
include/d2d1_1.idl
View file @
bf0c621c
...
@@ -33,6 +33,7 @@ cpp_quote("#ifndef __dwrite_h__")
...
@@ -33,6 +33,7 @@ cpp_quote("#ifndef __dwrite_h__")
/*
already
defined
in
dwrite
.
h
but
needed
for
WIDL
*/
/*
already
defined
in
dwrite
.
h
but
needed
for
WIDL
*/
typedef
struct
DWRITE_GLYPH_RUN_DESCRIPTION
DWRITE_GLYPH_RUN_DESCRIPTION
;
typedef
struct
DWRITE_GLYPH_RUN_DESCRIPTION
DWRITE_GLYPH_RUN_DESCRIPTION
;
cpp_quote
(
"#endif /* __dwrite_h__ */"
)
cpp_quote
(
"#endif /* __dwrite_h__ */"
)
cpp_quote
(
"#define D2D1_INVALID_PROPERTY_INDEX UINT_MAX"
)
typedef
enum
D2D1_DEVICE_CONTEXT_OPTIONS
typedef
enum
D2D1_DEVICE_CONTEXT_OPTIONS
{
{
...
...
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