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
0241da1c
Commit
0241da1c
authored
Aug 30, 2017
by
Vincent Povirk
Committed by
Alexandre Julliard
Aug 30, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Test that GdipGetRegionHRgn includes gdi32 transform.
Signed-off-by:
Vincent Povirk
<
vincent@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
016dc76a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
0 deletions
+31
-0
region.c
dlls/gdiplus/tests/region.c
+31
-0
No files found.
dlls/gdiplus/tests/region.c
View file @
0241da1c
...
...
@@ -1118,6 +1118,8 @@ static void test_gethrgn(void)
GpGraphics
*
graphics
;
HRGN
hrgn
;
HDC
hdc
=
GetDC
(
0
);
INT
rgntype
;
RECT
rgnbox
;
static
const
RECT
empty_rect
=
{
0
,
0
,
0
,
0
};
static
const
RECT
test_rect
=
{
10
,
11
,
20
,
21
};
static
const
GpRectF
test_rectF
=
{
10
.
0
,
11
.
0
,
10
.
0
,
10
.
0
};
...
...
@@ -1238,6 +1240,35 @@ static void test_gethrgn(void)
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
status
=
GdipDeleteGraphics
(
graphics
);
ok
(
status
==
Ok
,
"status %08x
\n
"
,
status
);
/* test with gdi32 transform */
SetViewportOrgEx
(
hdc
,
10
,
10
,
NULL
);
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
expect
(
Ok
,
status
);
status
=
GdipCreateRegionRect
(
&
test_rectF
,
&
region
);
expect
(
Ok
,
status
);
status
=
GdipGetRegionHRgn
(
region
,
graphics
,
&
hrgn
);
expect
(
Ok
,
status
);
rgntype
=
GetRgnBox
(
hrgn
,
&
rgnbox
);
DeleteObject
(
hrgn
);
expect
(
SIMPLEREGION
,
rgntype
);
expect
(
20
,
rgnbox
.
left
);
expect
(
21
,
rgnbox
.
top
);
expect
(
30
,
rgnbox
.
right
);
expect
(
31
,
rgnbox
.
bottom
);
status
=
GdipDeleteRegion
(
region
);
expect
(
Ok
,
status
);
status
=
GdipDeleteGraphics
(
graphics
);
expect
(
Ok
,
status
);
SetViewportOrgEx
(
hdc
,
0
,
0
,
NULL
);
ReleaseDC
(
0
,
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