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
2d29ec34
Commit
2d29ec34
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: Handle initial values for D2D1_PROPERTY_TYPE_BOOL.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
4a05b93d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
factory.c
dlls/d2d1/factory.c
+7
-0
d2d1.c
dlls/d2d1/tests/d2d1.c
+4
-0
No files found.
dlls/d2d1/factory.c
View file @
2d29ec34
...
...
@@ -829,6 +829,7 @@ static HRESULT parse_effect_add_property(struct d2d_effect_properties *props, co
{
void
*
src
=
NULL
;
UINT32
_uint32
;
BOOL
_bool
;
p
->
data
.
offset
=
props
->
offset
;
p
->
size
=
sizes
[
type
];
...
...
@@ -842,6 +843,12 @@ static HRESULT parse_effect_add_property(struct d2d_effect_properties *props, co
_uint32
=
wcstoul
(
value
,
NULL
,
10
);
src
=
&
_uint32
;
break
;
case
D2D1_PROPERTY_TYPE_BOOL
:
if
(
!
wcscmp
(
value
,
L"true"
))
_bool
=
TRUE
;
else
if
(
!
wcscmp
(
value
,
L"false"
))
_bool
=
FALSE
;
else
return
E_INVALIDARG
;
src
=
&
_bool
;
break
;
case
D2D1_PROPERTY_TYPE_IUNKNOWN
:
case
D2D1_PROPERTY_TYPE_COLOR_CONTEXT
:
break
;
...
...
dlls/d2d1/tests/d2d1.c
View file @
2d29ec34
...
...
@@ -50,6 +50,10 @@ L"<?xml version='1.0'?> \
<Property name='Max' type='uint32' value='100'/> \
<Property name='Default' type='uint32' value='10'/> \
</Property> \
<Property name='Bool' type='bool'> \
<Property name='DisplayName' type='string' value='Bool property'/> \
<Property name='Default' type='bool' value='false'/> \
</Property> \
</Effect> \
"
;
...
...
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