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
77412c1c
Commit
77412c1c
authored
Jul 28, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Aug 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Ignore DM_POSITION mode fields for available modes.
parent
ee0e10be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
sysparams.c
dlls/win32u/sysparams.c
+10
-4
No files found.
dlls/win32u/sysparams.c
View file @
77412c1c
...
...
@@ -448,8 +448,11 @@ static BOOL write_adapter_mode( HKEY adapter_key, DWORD index, const DEVMODEW *m
set_mode_field
(
flagsW
,
dmDisplayFlags
,
DM_DISPLAYFLAGS
);
set_mode_field
(
orientationW
,
dmDisplayOrientation
,
DM_DISPLAYORIENTATION
);
set_mode_field
(
fixed_outputW
,
dmDisplayFixedOutput
,
DM_DISPLAYFIXEDOUTPUT
);
set_mode_field
(
x_panningW
,
dmPosition
.
x
,
DM_POSITION
);
set_mode_field
(
y_panningW
,
dmPosition
.
y
,
DM_POSITION
);
if
(
index
==
ENUM_CURRENT_SETTINGS
||
index
==
ENUM_REGISTRY_SETTINGS
)
{
set_mode_field
(
x_panningW
,
dmPosition
.
x
,
DM_POSITION
);
set_mode_field
(
y_panningW
,
dmPosition
.
y
,
DM_POSITION
);
}
ret
=
set_reg_value
(
hkey
,
driver_extraW
,
REG_BINARY
,
mode
+
1
,
mode
->
dmDriverExtra
);
#undef set_mode_field
...
...
@@ -487,8 +490,11 @@ static BOOL read_adapter_mode( HKEY adapter_key, DWORD index, DEVMODEW *mode )
query_mode_field
(
y_resolutionW
,
dmPelsHeight
,
DM_PELSHEIGHT
);
query_mode_field
(
v_refreshW
,
dmDisplayFrequency
,
DM_DISPLAYFREQUENCY
);
query_mode_field
(
flagsW
,
dmDisplayFlags
,
DM_DISPLAYFLAGS
);
query_mode_field
(
x_panningW
,
dmPosition
.
x
,
DM_POSITION
);
query_mode_field
(
y_panningW
,
dmPosition
.
y
,
DM_POSITION
);
if
(
index
==
ENUM_CURRENT_SETTINGS
||
index
==
ENUM_REGISTRY_SETTINGS
)
{
query_mode_field
(
x_panningW
,
dmPosition
.
x
,
DM_POSITION
);
query_mode_field
(
y_panningW
,
dmPosition
.
y
,
DM_POSITION
);
}
query_mode_field
(
orientationW
,
dmDisplayOrientation
,
DM_DISPLAYORIENTATION
);
query_mode_field
(
fixed_outputW
,
dmDisplayFixedOutput
,
0
);
...
...
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