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
bbae35f0
Commit
bbae35f0
authored
Sep 22, 2020
by
Zhiyi Zhang
Committed by
Alexandre Julliard
Sep 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Support finding a full display mode with specified orientation.
Signed-off-by:
Zhiyi Zhang
<
zzhang@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ec245c7e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
settings.c
dlls/winex11.drv/settings.c
+4
-1
No files found.
dlls/winex11.drv/settings.c
View file @
bbae35f0
...
...
@@ -497,7 +497,7 @@ static DEVMODEW *get_full_mode(ULONG_PTR id, DEVMODEW *dev_mode)
if
(
is_detached_mode
(
dev_mode
))
return
dev_mode
;
if
(
!
handler
.
get_modes
(
id
,
0
,
&
modes
,
&
mode_count
))
if
(
!
handler
.
get_modes
(
id
,
EDS_ROTATEDMODE
,
&
modes
,
&
mode_count
))
return
NULL
;
qsort
(
modes
,
mode_count
,
sizeof
(
*
modes
)
+
modes
[
0
].
dmDriverExtra
,
mode_compare
);
...
...
@@ -519,6 +519,9 @@ static DEVMODEW *get_full_mode(ULONG_PTR id, DEVMODEW *dev_mode)
dev_mode
->
dmDisplayFrequency
!=
1
&&
dev_mode
->
dmDisplayFrequency
!=
found_mode
->
dmDisplayFrequency
)
continue
;
if
(
dev_mode
->
dmFields
&
DM_DISPLAYORIENTATION
&&
found_mode
->
u1
.
s2
.
dmDisplayOrientation
!=
dev_mode
->
u1
.
s2
.
dmDisplayOrientation
)
continue
;
break
;
}
...
...
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