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
7ba3eca2
Commit
7ba3eca2
authored
Aug 04, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Sep 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Remove unnecessary display mode flags checks.
parent
d21da2a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
12 deletions
+5
-12
display.c
dlls/winex11.drv/display.c
+5
-12
No files found.
dlls/winex11.drv/display.c
View file @
7ba3eca2
...
...
@@ -407,22 +407,15 @@ static DEVMODEW *get_full_mode(ULONG_PTR id, DEVMODEW *dev_mode)
{
found_mode
=
(
DEVMODEW
*
)((
BYTE
*
)
modes
+
(
sizeof
(
*
modes
)
+
modes
[
0
].
dmDriverExtra
)
*
mode_idx
);
if
(
dev_mode
->
dmFields
&
DM_BITSPERPEL
&&
dev_mode
->
dmBitsPerPel
&&
found_mode
->
dmBitsPerPel
!=
dev_mode
->
dmBitsPerPel
)
if
(
found_mode
->
dmBitsPerPel
!=
dev_mode
->
dmBitsPerPel
)
continue
;
if
(
dev_mode
->
dmFields
&
DM_PELSWIDTH
&&
found_mode
->
dmPelsWidth
!=
dev_mode
->
dmPelsWidth
)
if
(
found_mode
->
dmPelsWidth
!=
dev_mode
->
dmPelsWidth
)
continue
;
if
(
dev_mode
->
dmFields
&
DM_PELSHEIGHT
&&
found_mode
->
dmPelsHeight
!=
dev_mode
->
dmPelsHeight
)
if
(
found_mode
->
dmPelsHeight
!=
dev_mode
->
dmPelsHeight
)
continue
;
if
(
dev_mode
->
dmFields
&
DM_DISPLAYFREQUENCY
&&
dev_mode
->
dmDisplayFrequency
&&
found_mode
->
dmDisplayFrequency
&&
dev_mode
->
dmDisplayFrequency
!=
1
&&
dev_mode
->
dmDisplayFrequency
!=
found_mode
->
dmDisplayFrequency
)
if
(
found_mode
->
dmDisplayFrequency
!=
dev_mode
->
dmDisplayFrequency
)
continue
;
if
(
dev_mode
->
dmFields
&
DM_DISPLAYORIENTATION
&&
found_mode
->
dmDisplayOrientation
!=
dev_mode
->
dmDisplayOrientation
)
if
(
found_mode
->
dmDisplayOrientation
!=
dev_mode
->
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