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
15b959fb
Commit
15b959fb
authored
Apr 07, 2010
by
Johan Gill
Committed by
Alexandre Julliard
Apr 07, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw/tests: Added todo_wine test to verify resizing of fullscreen windows.
parent
83680cd0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
ddrawmodes.c
dlls/ddraw/tests/ddrawmodes.c
+12
-2
No files found.
dlls/ddraw/tests/ddrawmodes.c
View file @
15b959fb
...
...
@@ -388,6 +388,9 @@ static void enumdisplaymodes(void)
static
void
setdisplaymode
(
int
i
)
{
HRESULT
rc
;
RECT
orig_rect
;
SetRect
(
&
orig_rect
,
0
,
0
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
));
rc
=
IDirectDraw_SetCooperativeLevel
(
lpDD
,
hwnd
,
DDSCL_ALLOWMODEX
|
DDSCL_EXCLUSIVE
|
DDSCL_FULLSCREEN
);
...
...
@@ -402,14 +405,21 @@ static void setdisplaymode(int i)
ok
(
DD_OK
==
rc
||
DDERR_UNSUPPORTED
==
rc
,
"SetDisplayMode returned: %x
\n
"
,
rc
);
if
(
rc
==
DD_OK
)
{
RECT
r
,
scrn
,
virt
;
RECT
r
,
scrn
,
test
,
virt
;
SetRect
(
&
virt
,
0
,
0
,
GetSystemMetrics
(
SM_CXVIRTUALSCREEN
),
GetSystemMetrics
(
SM_CYVIRTUALSCREEN
));
OffsetRect
(
&
virt
,
GetSystemMetrics
(
SM_XVIRTUALSCREEN
),
GetSystemMetrics
(
SM_YVIRTUALSCREEN
));
SetRect
(
&
scrn
,
0
,
0
,
GetSystemMetrics
(
SM_CXSCREEN
),
GetSystemMetrics
(
SM_CYSCREEN
));
trace
(
"Mode (%dx%d) [%dx%d] (%d %d)x(%d %d)
\n
"
,
modes
[
i
].
dwWidth
,
modes
[
i
].
dwHeight
,
scrn
.
right
,
scrn
.
bottom
,
virt
.
left
,
virt
.
top
,
virt
.
right
,
virt
.
bottom
);
if
(
!
EqualRect
(
&
scrn
,
&
orig_rect
))
{
/* Check that the client rect was resized */
rc
=
GetClientRect
(
hwnd
,
&
test
);
ok
(
rc
!=
0
,
"GetClientRect returned %x
\n
"
,
rc
);
rc
=
EqualRect
(
&
scrn
,
&
test
);
todo_wine
ok
(
rc
!=
0
,
"Fullscreen window has wrong size
\n
"
);
}
ok
(
GetClipCursor
(
&
r
),
"GetClipCursor() failed
\n
"
);
/* ddraw sets clip rect here to the screen size, even for
multiple monitors */
...
...
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