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
f42ff6fe
Commit
f42ff6fe
authored
Jun 06, 2016
by
Vincent Povirk
Committed by
Alexandre Julliard
Jun 07, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Accept empty metafiles having 0 size on Windows.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8006fd41
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
8 deletions
+16
-8
metafile.c
dlls/gdiplus/tests/metafile.c
+16
-8
No files found.
dlls/gdiplus/tests/metafile.c
View file @
f42ff6fe
...
...
@@ -888,8 +888,10 @@ static void test_nullframerect(void) {
expect
(
UnitPixel
,
unit
);
expectf
(
0
.
0
,
bounds
.
X
);
expectf
(
0
.
0
,
bounds
.
Y
);
expectf
(
1
.
0
,
bounds
.
Width
);
expectf
(
1
.
0
,
bounds
.
Height
);
ok
(
bounds
.
Width
==
1
.
0
||
broken
(
bounds
.
Width
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Width
);
ok
(
bounds
.
Height
==
1
.
0
||
broken
(
bounds
.
Height
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Height
);
stat
=
GdipGetImageGraphicsContext
((
GpImage
*
)
metafile
,
&
graphics
);
expect
(
Ok
,
stat
);
...
...
@@ -908,8 +910,10 @@ static void test_nullframerect(void) {
expect
(
UnitPixel
,
unit
);
expectf
(
0
.
0
,
bounds
.
X
);
expectf
(
0
.
0
,
bounds
.
Y
);
expectf
(
1
.
0
,
bounds
.
Width
);
expectf
(
1
.
0
,
bounds
.
Height
);
ok
(
bounds
.
Width
==
1
.
0
||
broken
(
bounds
.
Width
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Width
);
ok
(
bounds
.
Height
==
1
.
0
||
broken
(
bounds
.
Height
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Height
);
stat
=
GdipDeleteGraphics
(
graphics
);
expect
(
Ok
,
stat
);
...
...
@@ -1279,8 +1283,10 @@ static void test_frameunit(void)
expect
(
UnitPixel
,
unit
);
expectf
(
0
.
0
,
bounds
.
X
);
expectf
(
0
.
0
,
bounds
.
Y
);
expectf
(
1
.
0
,
bounds
.
Width
);
expectf
(
1
.
0
,
bounds
.
Height
);
ok
(
bounds
.
Width
==
1
.
0
||
broken
(
bounds
.
Width
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Width
);
ok
(
bounds
.
Height
==
1
.
0
||
broken
(
bounds
.
Height
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Height
);
stat
=
GdipGetImageGraphicsContext
((
GpImage
*
)
metafile
,
&
graphics
);
expect
(
Ok
,
stat
);
...
...
@@ -1290,8 +1296,10 @@ static void test_frameunit(void)
expect
(
UnitPixel
,
unit
);
expectf
(
0
.
0
,
bounds
.
X
);
expectf
(
0
.
0
,
bounds
.
Y
);
expectf
(
1
.
0
,
bounds
.
Width
);
expectf
(
1
.
0
,
bounds
.
Height
);
ok
(
bounds
.
Width
==
1
.
0
||
broken
(
bounds
.
Width
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Width
);
ok
(
bounds
.
Height
==
1
.
0
||
broken
(
bounds
.
Height
==
0
.
0
)
/* xp sp1 */
,
"expected 1.0, got %f
\n
"
,
bounds
.
Height
);
stat
=
GdipDeleteGraphics
(
graphics
);
expect
(
Ok
,
stat
);
...
...
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