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
afcfb510
Commit
afcfb510
authored
Mar 08, 2011
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Mar 08, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add some additional tests for negative axes extents.
parent
cf7120b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
2 deletions
+30
-2
mapping.c
dlls/gdi32/tests/mapping.c
+30
-2
No files found.
dlls/gdi32/tests/mapping.c
View file @
afcfb510
...
...
@@ -210,15 +210,43 @@ static void test_world_transform(void)
expect_world_transform
(
hdc
,
20
.
0
,
20
.
0
);
expect_LPtoDP
(
hdc
,
20000
,
20000
);
size
.
cx
=
0xdeadbeef
;
size
.
cy
=
0xdeadbeef
;
ret
=
SetViewportExtEx
(
hdc
,
-
1
,
-
1
,
&
size
);
ok
(
ret
,
"SetViewportExtEx(-1, -1) failed
\n
"
);
ok
(
size
.
cx
==
1
&&
size
.
cy
==
1
,
"expected 1,1 got %d,%d
\n
"
,
size
.
cx
,
size
.
cy
);
expect_viewport_ext
(
hdc
,
1
,
1
);
expect_window_ext
(
hdc
,
1
,
1
);
expect_world_transform
(
hdc
,
20
.
0
,
20
.
0
);
expect_LPtoDP
(
hdc
,
20000
,
20000
);
ret
=
SetMapMode
(
hdc
,
MM_ANISOTROPIC
);
ok
(
ret
==
MM_TEXT
,
"expected MM_TEXT, got %d
\n
"
,
ret
);
expect_viewport_ext
(
hdc
,
1
,
1
);
expect_window_ext
(
hdc
,
1
,
1
);
expect_world_transform
(
hdc
,
20
.
0
,
20
.
0
);
expect_LPtoDP
(
hdc
,
20000
,
20000
);
size
.
cx
=
0xdeadbeef
;
size
.
cy
=
0xdeadbeef
;
ret
=
SetViewportExtEx
(
hdc
,
-
1
,
-
1
,
&
size
);
ok
(
ret
,
"SetViewportExtEx(-1, -1) failed
\n
"
);
ok
(
size
.
cx
==
1
&&
size
.
cy
==
1
,
"expected 1,1 got %d,%d
\n
"
,
size
.
cx
,
size
.
cy
);
expect_viewport_ext
(
hdc
,
-
1
,
-
1
);
expect_window_ext
(
hdc
,
1
,
1
);
expect_world_transform
(
hdc
,
20
.
0
,
20
.
0
);
expect_LPtoDP
(
hdc
,
-
20000
,
-
20000
);
ret
=
SetGraphicsMode
(
hdc
,
GM_COMPATIBLE
);
ok
(
ret
,
"SetGraphicsMode(GM_COMPATIBLE) should not fail if DC has't an identity transform
\n
"
);
ret
=
GetGraphicsMode
(
hdc
);
ok
(
ret
==
GM_COMPATIBLE
,
"expected GM_COMPATIBLE, got %d
\n
"
,
ret
);
expect_viewport_ext
(
hdc
,
1
,
1
);
expect_viewport_ext
(
hdc
,
-
1
,
-
1
);
expect_window_ext
(
hdc
,
1
,
1
);
expect_world_transform
(
hdc
,
20
.
0
,
20
.
0
);
expect_LPtoDP
(
hdc
,
20000
,
20000
);
expect_LPtoDP
(
hdc
,
-
20000
,
-
20000
);
DeleteDC
(
hdc
);
}
...
...
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