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
e253d6a0
Commit
e253d6a0
authored
Jul 10, 2008
by
Adam Petaccia
Committed by
Alexandre Julliard
Jul 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add a test for a floating-point triangle.
parent
5a60ec7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
region.c
dlls/gdiplus/tests/region.c
+38
-0
No files found.
dlls/gdiplus/tests/region.c
View file @
e253d6a0
...
...
@@ -361,6 +361,44 @@ todo_wine
expect
(
Ok
,
status
);
status
=
GdipDeleteRegion
(
region
);
expect
(
Ok
,
status
);
/* Test a floating-point triangle */
status
=
GdipCreatePath
(
FillModeAlternate
,
&
path
);
expect
(
Ok
,
status
);
status
=
GdipAddPathLine
(
path
,
5
.
6
,
6
.
2
,
7
.
2
,
8
.
9
);
expect
(
Ok
,
status
);
status
=
GdipAddPathLine
(
path
,
7
.
2
,
8
.
9
,
8
.
1
,
1
.
6
);
expect
(
Ok
,
status
);
status
=
GdipAddPathLine
(
path
,
8
.
1
,
1
.
6
,
5
.
6
,
6
.
2
);
expect
(
Ok
,
status
);
status
=
GdipCreateRegionPath
(
path
,
&
region
);
expect
(
Ok
,
status
);
status
=
GdipGetRegionDataSize
(
region
,
&
needed
);
expect
(
Ok
,
status
);
ok
(
needed
==
72
,
"Expected 72, got %d
\n
"
,
needed
);
status
=
GdipGetRegionData
(
region
,
(
BYTE
*
)
buf
,
sizeof
(
buf
),
&
needed
);
expect
(
Ok
,
status
);
expect_dword
(
buf
,
64
);
trace
(
"buf[1] = %08x
\n
"
,
buf
[
1
]);
expect_dword
(
buf
+
2
,
RGNDATA_MAGIC
);
expect_dword
(
buf
+
3
,
0
);
expect_dword
(
buf
+
4
,
RGNDATA_PATH
);
expect_dword
(
buf
+
5
,
48
);
expect_dword
(
buf
+
6
,
RGNDATA_MAGIC
);
expect_dword
(
buf
+
7
,
4
);
expect_dword
(
buf
+
8
,
0
);
expect_float
(
buf
+
9
,
5
.
6
);
expect_float
(
buf
+
10
,
6
.
2
);
expect_float
(
buf
+
11
,
7
.
2
);
expect_float
(
buf
+
12
,
8
.
9
);
expect_float
(
buf
+
13
,
8
.
1
);
expect_float
(
buf
+
14
,
1
.
6
);
expect_float
(
buf
+
15
,
5
.
6
);
expect_float
(
buf
+
16
,
6
.
2
);
status
=
GdipDeleteRegion
(
region
);
expect
(
Ok
,
status
);
}
START_TEST
(
region
)
...
...
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