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
e388a493
Commit
e388a493
authored
Dec 05, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Don't forget to initialize dmFields.
parent
8d2ef748
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
settings.c
dlls/winex11.drv/settings.c
+7
-0
No files found.
dlls/winex11.drv/settings.c
View file @
e388a493
...
...
@@ -197,6 +197,8 @@ static BOOL read_registry_settings(DEVMODEW *dm)
DWORD
type
,
size
;
BOOL
ret
=
TRUE
;
dm
->
dmFields
=
0
;
if
(
!
get_display_device_reg_key
(
wine_x11_reg_key
,
sizeof
(
wine_x11_reg_key
)))
return
FALSE
;
...
...
@@ -210,10 +212,15 @@ static BOOL read_registry_settings(DEVMODEW *dm)
ret = FALSE
query_value
(
"DefaultSettings.BitsPerPel"
,
&
dm
->
dmBitsPerPel
);
dm
->
dmFields
|=
DM_BITSPERPEL
;
query_value
(
"DefaultSettings.XResolution"
,
&
dm
->
dmPelsWidth
);
dm
->
dmFields
|=
DM_PELSWIDTH
;
query_value
(
"DefaultSettings.YResolution"
,
&
dm
->
dmPelsHeight
);
dm
->
dmFields
|=
DM_PELSHEIGHT
;
query_value
(
"DefaultSettings.VRefresh"
,
&
dm
->
dmDisplayFrequency
);
dm
->
dmFields
|=
DM_DISPLAYFREQUENCY
;
query_value
(
"DefaultSettings.Flags"
,
&
dm
->
u2
.
dmDisplayFlags
);
dm
->
dmFields
|=
DM_DISPLAYFLAGS
;
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
);
...
...
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