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
9c4aea6d
Commit
9c4aea6d
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: Add D2D1_PROPERTY_CACHED property.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
bf0c621c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
effect.c
dlls/d2d1/effect.c
+2
-0
d2d1.c
dlls/d2d1/tests/d2d1.c
+5
-5
No files found.
dlls/d2d1/effect.c
View file @
9c4aea6d
...
...
@@ -1029,6 +1029,8 @@ HRESULT d2d_effect_create(struct d2d_device_context *context, const CLSID *effec
return
E_FAIL
;
}
d2d_effect_properties_add
(
&
object
->
properties
,
L"Cached"
,
D2D1_PROPERTY_CACHED
,
D2D1_PROPERTY_TYPE_BOOL
,
L"false"
);
*
effect
=
&
object
->
ID2D1Effect_iface
;
TRACE
(
"Created effect %p.
\n
"
,
*
effect
);
...
...
dlls/d2d1/tests/d2d1.c
View file @
9c4aea6d
...
...
@@ -10416,11 +10416,11 @@ static void test_effect(BOOL d3d11)
ok
(
IsEqualGUID
(
&
clsid
,
test
->
clsid
),
"Got unexpected clsid %s, expected %s.
\n
"
,
debugstr_guid
(
&
clsid
),
debugstr_guid
(
test
->
clsid
));
hr
=
ID2D1Effect_GetValue
(
effect
,
D2D1_PROPERTY_CACHED
,
D2D1_PROPERTY_TYPE_BOOL
,
(
BYTE
*
)
&
cached
,
sizeof
(
cached
));
todo_wine
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
if
(
hr
==
S_OK
)
ok
(
cached
==
FALSE
,
"Got unexpected cached %d.
\n
"
,
cached
);
cached
=
TRUE
;
hr
=
ID2D1Effect_GetValue
(
effect
,
D2D1_PROPERTY_CACHED
,
D2D1_PROPERTY_TYPE_BOOL
,
(
BYTE
*
)
&
cached
,
sizeof
(
cached
)
);
ok
(
hr
==
S_OK
,
"Got unexpected hr %#lx.
\n
"
,
hr
);
ok
(
cached
==
FALSE
,
"Got unexpected cached %d.
\n
"
,
cached
);
hr
=
ID2D1Effect_GetValue
(
effect
,
D2D1_PROPERTY_PRECISION
,
D2D1_PROPERTY_TYPE_ENUM
,
(
BYTE
*
)
&
precision
,
sizeof
(
precision
));
...
...
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