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
cf5023bf
Commit
cf5023bf
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_device_caps() on multihead setups.
Unfortunately this currently mostly fails on Wine.
parent
d8ec2b5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
5 deletions
+39
-5
dc.c
dlls/gdi32/tests/dc.c
+39
-5
No files found.
dlls/gdi32/tests/dc.c
View file @
cf5023bf
...
@@ -457,12 +457,46 @@ static void test_device_caps( HDC hdc, HDC ref_dc, const char *descr, int scale
...
@@ -457,12 +457,46 @@ static void test_device_caps( HDC hdc, HDC ref_dc, const char *descr, int scale
type
=
GetClipBox
(
ref_dc
,
&
rect
);
type
=
GetClipBox
(
ref_dc
,
&
rect
);
if
(
type
!=
COMPLEXREGION
&&
type
!=
ERROR
)
/* region can be complex on multi-monitor setups */
if
(
type
!=
COMPLEXREGION
&&
type
!=
ERROR
)
/* region can be complex on multi-monitor setups */
{
{
RECT
ref_rect
;
ok
(
type
==
SIMPLEREGION
,
"GetClipBox returned %d on %s
\n
"
,
type
,
descr
);
ok
(
type
==
SIMPLEREGION
,
"GetClipBox returned %d on %s
\n
"
,
type
,
descr
);
ok
(
rect
.
left
==
0
&&
rect
.
top
==
0
&&
if
(
GetDeviceCaps
(
ref_dc
,
TECHNOLOGY
)
==
DT_RASDISPLAY
)
rect
.
right
==
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
)
&&
{
rect
.
bottom
==
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
),
if
(
GetSystemMetrics
(
SM_CXSCREEN
)
!=
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
))
"GetClipBox returned %d,%d,%d,%d on %s
\n
"
,
todo_wine
ok
(
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
)
==
GetSystemMetrics
(
SM_CXSCREEN
),
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
,
descr
);
"Got DESKTOPHORZRES %d on %s, expected %d
\n
"
,
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
),
descr
,
GetSystemMetrics
(
SM_CXSCREEN
)
);
else
ok
(
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
)
==
GetSystemMetrics
(
SM_CXSCREEN
),
"Got DESKTOPHORZRES %d on %s, expected %d
\n
"
,
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
),
descr
,
GetSystemMetrics
(
SM_CXSCREEN
)
);
if
(
GetSystemMetrics
(
SM_CYSCREEN
)
!=
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
))
todo_wine
ok
(
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
)
==
GetSystemMetrics
(
SM_CYSCREEN
),
"Got DESKTOPVERTRES %d on %s, expected %d
\n
"
,
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
),
descr
,
GetSystemMetrics
(
SM_CYSCREEN
)
);
else
ok
(
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
)
==
GetSystemMetrics
(
SM_CYSCREEN
),
"Got DESKTOPVERTRES %d on %s, expected %d
\n
"
,
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
),
descr
,
GetSystemMetrics
(
SM_CYSCREEN
)
);
SetRect
(
&
ref_rect
,
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
),
GetSystemMetrics
(
SM_XVIRTUALSCREEN
)
+
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
)
+
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
)
);
}
else
{
SetRect
(
&
ref_rect
,
0
,
0
,
GetDeviceCaps
(
ref_dc
,
DESKTOPHORZRES
),
GetDeviceCaps
(
ref_dc
,
DESKTOPVERTRES
)
);
}
if
(
GetDeviceCaps
(
ref_dc
,
TECHNOLOGY
)
==
DT_RASDISPLAY
&&
GetObjectType
(
hdc
)
!=
OBJ_ENHMETADC
&&
(
GetSystemMetrics
(
SM_XVIRTUALSCREEN
)
||
GetSystemMetrics
(
SM_YVIRTUALSCREEN
)))
todo_wine
ok
(
EqualRect
(
&
rect
,
&
ref_rect
),
"GetClipBox returned %d,%d,%d,%d on %s
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
,
descr
);
else
ok
(
EqualRect
(
&
rect
,
&
ref_rect
),
"GetClipBox returned %d,%d,%d,%d on %s
\n
"
,
rect
.
left
,
rect
.
top
,
rect
.
right
,
rect
.
bottom
,
descr
);
}
}
SetBoundsRect
(
ref_dc
,
NULL
,
DCB_RESET
|
DCB_ACCUMULATE
);
SetBoundsRect
(
ref_dc
,
NULL
,
DCB_RESET
|
DCB_ACCUMULATE
);
...
...
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