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
83e2f442
Commit
83e2f442
authored
Nov 05, 2007
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Fix compilation on systems that don't support either nameless unions or nameless structs.
parent
7b00b60c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
15 deletions
+19
-15
settings.c
dlls/winex11.drv/settings.c
+19
-15
No files found.
dlls/winex11.drv/settings.c
View file @
83e2f442
...
...
@@ -21,6 +21,10 @@
#include "config.h"
#include <string.h>
#include <stdio.h>
#define NONAMELESSUNION
#define NONAMELESSSTRUCT
#include "x11drv.h"
#include "windef.h"
...
...
@@ -185,11 +189,11 @@ static BOOL read_registry_settings(DEVMODEW *dm)
query_value
(
"DefaultSettings.XResolution"
,
&
dm
->
dmPelsWidth
);
query_value
(
"DefaultSettings.YResolution"
,
&
dm
->
dmPelsHeight
);
query_value
(
"DefaultSettings.VRefresh"
,
&
dm
->
dmDisplayFrequency
);
query_value
(
"DefaultSettings.Flags"
,
&
dm
->
dmDisplayFlags
);
query_value
(
"DefaultSettings.XPanning"
,
&
dm
->
dmPosition
.
x
);
query_value
(
"DefaultSettings.YPanning"
,
&
dm
->
dmPosition
.
y
);
query_value
(
"DefaultSettings.Orientation"
,
&
dm
->
dmDisplayOrientation
);
query_value
(
"DefaultSettings.FixedOutput"
,
&
dm
->
dmDisplayFixedOutput
);
query_value
(
"DefaultSettings.Flags"
,
&
dm
->
u2
.
dmDisplayFlags
);
query_value
(
"DefaultSettings.XPanning"
,
&
dm
->
u1
.
s2
.
dmPosition
.
x
);
query_value
(
"DefaultSettings.YPanning"
,
&
dm
->
u1
.
s2
.
dmPosition
.
y
);
query_value
(
"DefaultSettings.Orientation"
,
&
dm
->
u1
.
s2
.
dmDisplayOrientation
);
query_value
(
"DefaultSettings.FixedOutput"
,
&
dm
->
u1
.
s2
.
dmDisplayFixedOutput
);
#undef query_value
...
...
@@ -213,11 +217,11 @@ static BOOL write_registry_settings(const DEVMODEW *dm)
set_value
(
"DefaultSettings.XResolution"
,
&
dm
->
dmPelsWidth
);
set_value
(
"DefaultSettings.YResolution"
,
&
dm
->
dmPelsHeight
);
set_value
(
"DefaultSettings.VRefresh"
,
&
dm
->
dmDisplayFrequency
);
set_value
(
"DefaultSettings.Flags"
,
&
dm
->
dmDisplayFlags
);
set_value
(
"DefaultSettings.XPanning"
,
&
dm
->
dmPosition
.
x
);
set_value
(
"DefaultSettings.YPanning"
,
&
dm
->
dmPosition
.
y
);
set_value
(
"DefaultSettings.Orientation"
,
&
dm
->
dmDisplayOrientation
);
set_value
(
"DefaultSettings.FixedOutput"
,
&
dm
->
dmDisplayFixedOutput
);
set_value
(
"DefaultSettings.Flags"
,
&
dm
->
u2
.
dmDisplayFlags
);
set_value
(
"DefaultSettings.XPanning"
,
&
dm
->
u1
.
s2
.
dmPosition
.
x
);
set_value
(
"DefaultSettings.YPanning"
,
&
dm
->
u1
.
s2
.
dmPosition
.
y
);
set_value
(
"DefaultSettings.Orientation"
,
&
dm
->
u1
.
s2
.
dmDisplayOrientation
);
set_value
(
"DefaultSettings.FixedOutput"
,
&
dm
->
u1
.
s2
.
dmDisplayFixedOutput
);
#undef set_value
...
...
@@ -243,12 +247,12 @@ BOOL X11DRV_EnumDisplaySettingsEx( LPCWSTR name, DWORD n, LPDEVMODEW devmode, DW
devmode
->
dmDriverVersion
=
MAKEWORD
(
1
,
4
);
memcpy
(
devmode
->
dmDeviceName
,
dev_name
,
sizeof
(
dev_name
));
devmode
->
dmDriverExtra
=
0
;
devmode
->
dmDisplayFlags
=
0
;
devmode
->
u2
.
dmDisplayFlags
=
0
;
devmode
->
dmDisplayFrequency
=
0
;
devmode
->
dmPosition
.
x
=
0
;
devmode
->
dmPosition
.
y
=
0
;
devmode
->
dmDisplayOrientation
=
0
;
devmode
->
dmDisplayFixedOutput
=
0
;
devmode
->
u1
.
s2
.
dmPosition
.
x
=
0
;
devmode
->
u1
.
s2
.
dmPosition
.
y
=
0
;
devmode
->
u1
.
s2
.
dmDisplayOrientation
=
0
;
devmode
->
u1
.
s2
.
dmDisplayFixedOutput
=
0
;
if
(
n
==
ENUM_CURRENT_SETTINGS
)
{
...
...
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