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
dad99e2a
Commit
dad99e2a
authored
Sep 07, 2009
by
Ilya Shpigor
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Add test for SelectClipRgn in metafile.
parent
5f28a6a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
metafile.c
dlls/gdi32/tests/metafile.c
+17
-0
No files found.
dlls/gdi32/tests/metafile.c
View file @
dad99e2a
...
...
@@ -1908,6 +1908,7 @@ static void test_emf_clipping(void)
HENHMETAFILE
hemf
;
HRGN
hrgn
;
INT
ret
;
RECT
rc_res
,
rc_sclip
;
SetLastError
(
0xdeadbeef
);
hdc
=
CreateEnhMetaFileA
(
0
,
NULL
,
NULL
,
NULL
);
...
...
@@ -1946,6 +1947,22 @@ static void test_emf_clipping(void)
DeleteEnhMetaFile
(
hemf
);
ReleaseDC
(
hwnd
,
hdc
);
DestroyWindow
(
hwnd
);
hdc
=
CreateEnhMetaFileA
(
0
,
NULL
,
NULL
,
NULL
);
SetRect
(
&
rc_sclip
,
100
,
100
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
));
hrgn
=
CreateRectRgn
(
rc_sclip
.
left
,
rc_sclip
.
top
,
rc_sclip
.
right
,
rc_sclip
.
bottom
);
SelectClipRgn
(
hdc
,
hrgn
);
GetClipBox
(
hdc
,
&
rc_res
);
todo_wine
ok
(
EqualRect
(
&
rc_res
,
&
rc_sclip
),
"expected rc_res (%d, %d) - (%d, %d), got (%d, %d) - (%d, %d)
\n
"
,
rc_sclip
.
left
,
rc_sclip
.
top
,
rc_sclip
.
right
,
rc_sclip
.
bottom
,
rc_res
.
left
,
rc_res
.
top
,
rc_res
.
right
,
rc_res
.
bottom
);
hemf
=
CloseEnhMetaFile
(
hdc
);
DeleteEnhMetaFile
(
hemf
);
DeleteObject
(
hrgn
);
DeleteDC
(
hdc
);
}
static
INT
CALLBACK
EmfEnumProc
(
HDC
hdc
,
HANDLETABLE
*
lpHTable
,
const
ENHMETARECORD
*
lpEMFR
,
INT
nObj
,
LPARAM
lpData
)
...
...
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