Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
32ac2d19
Commit
32ac2d19
authored
Aug 26, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Aug 26, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Test for default Graphics clipping region.
parent
c61ece67
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
0 deletions
+35
-0
graphics.c
dlls/gdiplus/tests/graphics.c
+35
-0
No files found.
dlls/gdiplus/tests/graphics.c
View file @
32ac2d19
...
...
@@ -764,6 +764,40 @@ static void test_transformpoints(void)
ReleaseDC
(
0
,
hdc
);
}
static
void
test_getclip
(
void
)
{
GpStatus
status
;
GpGraphics
*
graphics
=
NULL
;
HDC
hdc
=
GetDC
(
0
);
GpRegion
*
clip
;
BOOL
res
;
status
=
GdipCreateFromHDC
(
hdc
,
&
graphics
);
expect
(
Ok
,
status
);
status
=
GdipCreateRegion
(
&
clip
);
/* NULL arguments */
status
=
GdipGetClip
(
NULL
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetClip
(
graphics
,
NULL
);
expect
(
InvalidParameter
,
status
);
status
=
GdipGetClip
(
NULL
,
clip
);
expect
(
InvalidParameter
,
status
);
res
=
FALSE
;
status
=
GdipGetClip
(
graphics
,
clip
);
todo_wine
expect
(
Ok
,
status
);
status
=
GdipIsInfiniteRegion
(
clip
,
graphics
,
&
res
);
todo_wine
expect
(
Ok
,
status
);
todo_wine
expect
(
TRUE
,
res
);
GdipDeleteRegion
(
clip
);
GdipDeleteGraphics
(
graphics
);
ReleaseDC
(
0
,
hdc
);
}
START_TEST
(
graphics
)
{
struct
GdiplusStartupInput
gdiplusStartupInput
;
...
...
@@ -785,6 +819,7 @@ START_TEST(graphics)
test_GdipDrawLinesI
();
test_Get_Release_DC
();
test_transformpoints
();
test_getclip
();
GdiplusShutdown
(
gdiplusToken
);
}
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