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
d8ec2b5d
Commit
d8ec2b5d
authored
Mar 11, 2014
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 11, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Fix test_window_dc_clipping() when the virtual screen origin is not (0, 0).
parent
ec66785f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
clipping.c
dlls/gdi32/tests/clipping.c
+9
-7
No files found.
dlls/gdi32/tests/clipping.c
View file @
d8ec2b5d
...
...
@@ -438,7 +438,7 @@ static void test_window_dc_clipping(void)
HDC
hdc
;
HRGN
hrgn
,
hrgn_empty
;
HWND
hwnd
;
RECT
rc
;
RECT
rc
,
virtual_rect
;
int
ret
,
screen_width
,
screen_height
;
/* Windows versions earlier than Win2k do not support the virtual screen metrics,
...
...
@@ -447,6 +447,8 @@ static void test_window_dc_clipping(void)
if
(
!
screen_width
)
screen_width
=
GetSystemMetrics
(
SM_CXSCREEN
);
screen_height
=
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
);
if
(
!
screen_height
)
screen_height
=
GetSystemMetrics
(
SM_CYSCREEN
);
SetRect
(
&
virtual_rect
,
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
),
GetSystemMetrics
(
SM_XVIRTUALSCREEN
)
+
screen_width
,
GetSystemMetrics
(
SM_YVIRTUALSCREEN
)
+
screen_height
);
trace
(
"screen resolution %d x %d
\n
"
,
screen_width
,
screen_height
);
...
...
@@ -474,9 +476,9 @@ static void test_window_dc_clipping(void)
ret
=
GetRgnBox
(
hrgn
,
&
rc
);
ok
(
ret
==
SIMPLEREGION
,
"expected SIMPLEREGION, got %d
\n
"
,
ret
);
ok
(
rc
.
left
==
0
&&
rc
.
top
==
0
&&
rc
.
right
==
screen_width
&&
rc
.
bottom
==
screen_height
,
"expected 0,0-%d,%d, got %d,%d-%d,%d
\n
"
,
screen_width
,
screen_height
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ok
(
EqualRect
(
&
rc
,
&
virtual_rect
),
"expected %d,%d-%d,%d, got %d,%d-%d,%d
\n
"
,
virtual_rect
.
left
,
virtual_rect
.
top
,
virtual_rect
.
right
,
virtual_rect
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
SetRect
(
&
rc
,
10
,
10
,
20
,
20
);
ret
=
RectVisible
(
hdc
,
&
rc
);
...
...
@@ -494,9 +496,9 @@ static void test_window_dc_clipping(void)
ret
=
GetRgnBox
(
hrgn
,
&
rc
);
ok
(
ret
==
SIMPLEREGION
,
"expected SIMPLEREGION, got %d
\n
"
,
ret
);
ok
(
rc
.
left
==
0
&&
rc
.
top
==
0
&&
rc
.
right
==
screen_width
&&
rc
.
bottom
==
screen_height
,
"expected 0,0-%d,%d, got %d,%d-%d,%d
\n
"
,
screen_width
,
screen_height
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ok
(
EqualRect
(
&
rc
,
&
virtual_rect
),
"expected %d,%d-%d,%d, got %d,%d-%d,%d
\n
"
,
virtual_rect
.
left
,
virtual_rect
.
top
,
virtual_rect
.
right
,
virtual_rect
.
bottom
,
rc
.
left
,
rc
.
top
,
rc
.
right
,
rc
.
bottom
);
ret
=
ExtSelectClipRgn
(
hdc
,
0
,
RGN_COPY
);
ok
(
ret
==
SIMPLEREGION
||
(
ret
==
COMPLEXREGION
&&
GetSystemMetrics
(
SM_CMONITORS
)
>
1
),
...
...
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