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
89e5c262
Commit
89e5c262
authored
Mar 08, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 15, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Add a test for GdipGetMetafileHeaderFromMetafile.
parent
69e9de18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
image.c
dlls/gdiplus/tests/image.c
+44
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
89e5c262
...
...
@@ -828,6 +828,7 @@ static void test_loadwmf(void)
GpRectF
bounds
;
GpUnit
unit
;
REAL
res
=
12345
.
0
;
MetafileHeader
header
;
hglob
=
GlobalAlloc
(
0
,
sizeof
(
wmfimage
));
data
=
GlobalLock
(
hglob
);
...
...
@@ -863,6 +864,27 @@ static void test_loadwmf(void)
expect
(
Ok
,
stat
);
todo_wine
expectf
(
1440
.
0
,
res
);
memset
(
&
header
,
0
,
sizeof
(
header
));
stat
=
GdipGetMetafileHeaderFromMetafile
((
GpMetafile
*
)
img
,
&
header
);
expect
(
Ok
,
stat
);
if
(
stat
==
Ok
)
{
todo_wine
expect
(
MetafileTypeWmfPlaceable
,
header
.
Type
);
todo_wine
expect
(
sizeof
(
wmfimage
)
-
sizeof
(
WmfPlaceableFileHeader
),
header
.
Size
);
todo_wine
expect
(
0x300
,
header
.
Version
);
expect
(
0
,
header
.
EmfPlusFlags
);
todo_wine
expectf
(
1440
.
0
,
header
.
DpiX
);
todo_wine
expectf
(
1440
.
0
,
header
.
DpiY
);
expect
(
0
,
header
.
X
);
expect
(
0
,
header
.
Y
);
todo_wine
expect
(
320
,
header
.
Width
);
todo_wine
expect
(
320
,
header
.
Height
);
todo_wine
expect
(
1
,
header
.
WmfHeader
.
mtType
);
expect
(
0
,
header
.
EmfPlusHeaderSize
);
expect
(
0
,
header
.
LogicalDpiX
);
expect
(
0
,
header
.
LogicalDpiY
);
}
GdipDisposeImage
(
img
);
}
...
...
@@ -874,6 +896,7 @@ static void test_createfromwmf(void)
GpRectF
bounds
;
GpUnit
unit
;
REAL
res
=
12345
.
0
;
MetafileHeader
header
;
hwmf
=
SetMetaFileBitsEx
(
sizeof
(
wmfimage
)
-
sizeof
(
WmfPlaceableFileHeader
),
wmfimage
+
sizeof
(
WmfPlaceableFileHeader
));
...
...
@@ -899,6 +922,27 @@ static void test_createfromwmf(void)
expect
(
Ok
,
stat
);
expectf
(
1440
.
0
,
res
);
memset
(
&
header
,
0
,
sizeof
(
header
));
stat
=
GdipGetMetafileHeaderFromMetafile
((
GpMetafile
*
)
img
,
&
header
);
expect
(
Ok
,
stat
);
if
(
stat
==
Ok
)
{
todo_wine
expect
(
MetafileTypeWmfPlaceable
,
header
.
Type
);
todo_wine
expect
(
sizeof
(
wmfimage
)
-
sizeof
(
WmfPlaceableFileHeader
),
header
.
Size
);
todo_wine
expect
(
0x300
,
header
.
Version
);
expect
(
0
,
header
.
EmfPlusFlags
);
todo_wine
expectf
(
1440
.
0
,
header
.
DpiX
);
todo_wine
expectf
(
1440
.
0
,
header
.
DpiY
);
expect
(
0
,
header
.
X
);
expect
(
0
,
header
.
Y
);
todo_wine
expect
(
320
,
header
.
Width
);
todo_wine
expect
(
320
,
header
.
Height
);
todo_wine
expect
(
1
,
header
.
WmfHeader
.
mtType
);
expect
(
0
,
header
.
EmfPlusHeaderSize
);
expect
(
0
,
header
.
LogicalDpiX
);
expect
(
0
,
header
.
LogicalDpiY
);
}
GdipDisposeImage
(
img
);
}
...
...
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