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
6ae987ea
Commit
6ae987ea
authored
Nov 09, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d9/tests: Specify width and height when changing the display orientation.
This appears to be required on Windows 7, or perhaps depends on the video driver.
parent
7d37e7e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
d3d9ex.c
dlls/d3d9/tests/d3d9ex.c
+5
-2
No files found.
dlls/d3d9/tests/d3d9ex.c
View file @
6ae987ea
...
...
@@ -268,9 +268,12 @@ static void test_get_adapter_displaymode_ex(void)
memset
(
&
startmode
,
0
,
sizeof
(
startmode
));
startmode
.
dmSize
=
sizeof
(
startmode
);
startmode
.
dmFields
=
DM_DISPLAYORIENTATION
;
S2
(
U1
(
startmode
)).
dmDisplayOrientation
=
DMDO_180
;
retval
=
pEnumDisplaySettingsExA
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
startmode
,
0
);
ok
(
retval
,
"Failed to retrieve current display mode, retval %d.
\n
"
,
retval
);
if
(
!
retval
)
goto
out
;
startmode
.
dmFields
=
DM_DISPLAYORIENTATION
|
DM_PELSWIDTH
|
DM_PELSHEIGHT
;
S2
(
U1
(
startmode
)).
dmDisplayOrientation
=
DMDO_180
;
retval
=
pChangeDisplaySettingsExA
(
NULL
,
&
startmode
,
NULL
,
0
,
NULL
);
if
(
retval
==
DISP_CHANGE_BADMODE
)
...
...
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