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
f74075b7
Commit
f74075b7
authored
May 05, 2008
by
Maarten Lankhorst
Committed by
Alexandre Julliard
May 06, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make mapping test slightly less strict so it passes on windows XP.
parent
5c9fbb82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mapping.c
dlls/gdi32/tests/mapping.c
+4
-2
No files found.
dlls/gdi32/tests/mapping.c
View file @
f74075b7
...
...
@@ -53,6 +53,8 @@ static void test_modify_world_transform(void)
ReleaseDC
(
0
,
hdc
);
}
#define rough_match(got, expected) ((got >= expected - 2) && (got <= expected + 2))
static
void
test_SetWindowExt
(
HDC
hdc
,
LONG
cx
,
LONG
cy
,
LONG
expected_vp_cx
,
LONG
expected_vp_cy
)
{
SIZE
windowExt
,
viewportExt
;
...
...
@@ -68,7 +70,7 @@ static void test_SetWindowExt(HDC hdc, LONG cx, LONG cy, LONG expected_vp_cx, LO
cx
,
cy
,
windowExt
.
cx
,
windowExt
.
cy
);
GetViewportExtEx
(
hdc
,
&
viewportExt
);
ok
(
viewportExt
.
cx
==
expected_vp_cx
&&
viewportExt
.
cy
==
expected_vp_cy
,
ok
(
rough_match
(
viewportExt
.
cx
,
expected_vp_cx
)
&&
rough_match
(
viewportExt
.
cy
,
expected_vp_cy
)
,
"Viewport extents have not been properly adjusted: Expected %dx%d, got %dx%d
\n
"
,
expected_vp_cx
,
expected_vp_cy
,
viewportExt
.
cx
,
viewportExt
.
cy
);
...
...
@@ -94,7 +96,7 @@ static void test_SetViewportExt(HDC hdc, LONG cx, LONG cy, LONG expected_vp_cx,
SetViewportExtEx
(
hdc
,
cx
,
cy
,
NULL
);
GetViewportExtEx
(
hdc
,
&
viewportExt
);
ok
(
viewportExt
.
cx
==
expected_vp_cx
&&
viewportExt
.
cy
==
expected_vp_cy
,
ok
(
rough_match
(
viewportExt
.
cx
,
expected_vp_cx
)
&&
rough_match
(
viewportExt
.
cy
,
expected_vp_cy
)
,
"Viewport extents have not been properly adjusted: Expected %dx%d, got %dx%d
\n
"
,
expected_vp_cx
,
expected_vp_cy
,
viewportExt
.
cx
,
viewportExt
.
cy
);
...
...
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