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
d05cfdd7
Commit
d05cfdd7
authored
Apr 10, 2024
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 11, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d2d1/effect: Add 'Rect' property to the Crop effect description.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
ce3d3f75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
8 deletions
+3
-8
effect.c
dlls/d2d1/effect.c
+1
-0
d2d1.c
dlls/d2d1/tests/d2d1.c
+2
-8
No files found.
dlls/d2d1/effect.c
View file @
d05cfdd7
...
...
@@ -904,6 +904,7 @@ L"<?xml version='1.0'?> \
<Inputs > \
<Input name='Source'/> \
</Inputs> \
<Property name='Rect' type='vector4' /> \
</Effect>"
;
static
const
WCHAR
shadow_description
[]
=
...
...
dlls/d2d1/tests/d2d1.c
View file @
d05cfdd7
...
...
@@ -14746,17 +14746,14 @@ static void test_get_effect_properties(BOOL d3d11)
ok
(
count
==
2
,
"Unexpected property count %u.
\n
"
,
count
);
hr
=
ID2D1Properties_GetPropertyName
(
properties
,
0
,
buffW
,
ARRAY_SIZE
(
buffW
));
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
ok
(
!
wcscmp
(
buffW
,
L"Rect"
),
"Unexpected name %s.
\n
"
,
debugstr_w
(
buffW
));
ok
(
!
wcscmp
(
buffW
,
L"Rect"
),
"Unexpected name %s.
\n
"
,
debugstr_w
(
buffW
));
count
=
ID2D1Properties_GetPropertyNameLength
(
properties
,
0
);
todo_wine
ok
(
count
==
4
,
"Unexpected name length %u.
\n
"
,
count
);
type
=
ID2D1Properties_GetType
(
properties
,
0
);
todo_wine
ok
(
type
==
D2D1_PROPERTY_TYPE_VECTOR4
,
"Unexpected property type %u.
\n
"
,
type
);
index
=
ID2D1Properties_GetPropertyIndex
(
properties
,
L"prop"
);
...
...
@@ -14765,7 +14762,6 @@ static void test_get_effect_properties(BOOL d3d11)
set_vec4
(
&
rect
,
0
.
0
f
,
2
.
0
f
,
10
.
0
f
,
20
.
0
f
);
hr
=
ID2D1Properties_SetValue
(
properties
,
D2D1_CROP_PROP_RECT
,
D2D1_PROPERTY_TYPE_VECTOR4
,
(
const
BYTE
*
)
&
rect
,
sizeof
(
rect
));
todo_wine
ok
(
hr
==
E_INVALIDARG
,
"Unexpected hr %#lx.
\n
"
,
hr
);
hr
=
ID2D1Properties_SetValue
(
properties
,
1000
,
D2D1_PROPERTY_TYPE_VECTOR4
,
...
...
@@ -14776,10 +14772,8 @@ static void test_get_effect_properties(BOOL d3d11)
set_vec4
(
&
rect
,
0
.
0
f
,
.
0
f
,
0
.
0
f
,
0
.
0
f
);
hr
=
ID2D1Properties_GetValue
(
properties
,
D2D1_CROP_PROP_RECT
,
D2D1_PROPERTY_TYPE_VECTOR4
,
(
BYTE
*
)
&
rect2
,
sizeof
(
rect2
));
todo_wine
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
if
(
SUCCEEDED
(
hr
))
ok
(
!
memcmp
(
&
rect
,
&
rect2
,
sizeof
(
rect
)),
"Unexpected value.
\n
"
);
ok
(
!
memcmp
(
&
rect
,
&
rect2
,
sizeof
(
rect
)),
"Unexpected value.
\n
"
);
ID2D1Properties_Release
(
properties
);
...
...
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