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
04308954
Commit
04308954
authored
Oct 28, 2023
by
Bartosz Kosiorek
Committed by
Alexandre Julliard
Oct 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Add tests for GdipSetPenTransform.
parent
86cdcb69
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletion
+22
-1
pen.c
dlls/gdiplus/tests/pen.c
+22
-1
No files found.
dlls/gdiplus/tests/pen.c
View file @
04308954
...
...
@@ -445,9 +445,10 @@ static void test_transform(void)
{
GpStatus
status
;
GpPen
*
pen
;
GpMatrix
*
matrix
,
*
matrix2
;
GpMatrix
*
matrix
,
*
matrix2
,
*
not_invertible_matrix
;
REAL
values
[
6
];
/* Check default Pen Transformation */
status
=
GdipCreatePen1
((
ARGB
)
0xffff00ff
,
10
.
0
f
,
UnitPixel
,
&
pen
);
expect
(
Ok
,
status
);
...
...
@@ -467,6 +468,26 @@ static void test_transform(void)
expectf
(
0
.
0
,
values
[
4
]);
expectf
(
0
.
0
,
values
[
5
]);
/* Setting Pen Tranformation to Not invertible matrix, should return InvalidParameter */
GdipCreateMatrix2
(
3
.
0
,
3
.
0
,
2
.
0
,
2
.
0
,
6
.
0
,
3
.
0
,
&
not_invertible_matrix
);
status
=
GdipSetPenTransform
(
pen
,
not_invertible_matrix
);
todo_wine
expect
(
InvalidParameter
,
status
);
GdipDeleteMatrix
(
not_invertible_matrix
);
status
=
GdipGetPenTransform
(
pen
,
matrix
);
expect
(
Ok
,
status
);
status
=
GdipGetMatrixElements
(
matrix
,
values
);
expect
(
Ok
,
status
);
todo_wine
expectf
(
1
.
0
,
values
[
0
]);
todo_wine
expectf
(
0
.
0
,
values
[
1
]);
todo_wine
expectf
(
0
.
0
,
values
[
2
]);
todo_wine
expectf
(
1
.
0
,
values
[
3
]);
todo_wine
expectf
(
0
.
0
,
values
[
4
]);
todo_wine
expectf
(
0
.
0
,
values
[
5
]);
/* Setting Pen Tranformation to invertible matrix, should be successfull */
GdipCreateMatrix2
(
3
.
0
,
-
2
.
0
,
5
.
0
,
2
.
0
,
6
.
0
,
3
.
0
,
&
matrix2
);
status
=
GdipSetPenTransform
(
pen
,
matrix2
);
expect
(
Ok
,
status
);
...
...
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