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
4a05b93d
Commit
4a05b93d
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: Set initial value for uint32 properties.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
c172b895
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
factory.c
dlls/d2d1/factory.c
+23
-1
No files found.
dlls/d2d1/factory.c
View file @
4a05b93d
...
...
@@ -827,10 +827,32 @@ static HRESULT parse_effect_add_property(struct d2d_effect_properties *props, co
}
else
{
void
*
src
=
NULL
;
UINT32
_uint32
;
p
->
data
.
offset
=
props
->
offset
;
p
->
size
=
sizes
[
type
];
props
->
offset
+=
p
->
size
;
/* FIXME: convert and write initial value */
if
(
value
)
{
switch
(
p
->
type
)
{
case
D2D1_PROPERTY_TYPE_UINT32
:
_uint32
=
wcstoul
(
value
,
NULL
,
10
);
src
=
&
_uint32
;
break
;
case
D2D1_PROPERTY_TYPE_IUNKNOWN
:
case
D2D1_PROPERTY_TYPE_COLOR_CONTEXT
:
break
;
default:
FIXME
(
"Initial value for property type %u is not handled.
\n
"
,
p
->
type
);
}
if
(
src
&&
p
->
size
)
memcpy
(
props
->
data
.
ptr
+
p
->
data
.
offset
,
src
,
p
->
size
);
}
else
if
(
p
->
size
)
memset
(
props
->
data
.
ptr
+
p
->
data
.
offset
,
0
,
p
->
size
);
}
p
->
set_function
=
NULL
;
p
->
get_function
=
NULL
;
...
...
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