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
e5488648
Commit
e5488648
authored
Dec 03, 2007
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Dec 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
explorer: Store current display mode in the registry on startup.
parent
718e7130
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
desktop.c
programs/explorer/desktop.c
+12
-1
No files found.
programs/explorer/desktop.c
View file @
e5488648
...
...
@@ -38,7 +38,7 @@ static BOOL using_root;
/* window procedure for the desktop window */
static
LRESULT
WINAPI
desktop_wnd_proc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wp
,
LPARAM
lp
)
{
WINE_TRACE
(
"got msg %x wp %lx lp %lx
\n
"
,
message
,
wp
,
lp
);
WINE_TRACE
(
"got msg %
04
x wp %lx lp %lx
\n
"
,
message
,
wp
,
lp
);
switch
(
message
)
{
...
...
@@ -123,6 +123,7 @@ static void initialize_display_settings( HWND desktop )
GUID
guid
;
LPWSTR
guid_str
;
ATOM
guid_atom
;
DEVMODEW
dmW
;
UuidCreate
(
&
guid
);
UuidToStringW
(
&
guid
,
&
guid_str
);
...
...
@@ -132,6 +133,16 @@ static void initialize_display_settings( HWND desktop )
SetPropW
(
desktop
,
display_device_guid_propW
,
ULongToHandle
(
guid_atom
)
);
RpcStringFreeW
(
&
guid_str
);
/* Store current display mode in the registry */
if
(
EnumDisplaySettingsExW
(
NULL
,
ENUM_CURRENT_SETTINGS
,
&
dmW
,
0
))
{
WINE_TRACE
(
"Current display mode %ux%u %u bpp %u Hz
\n
"
,
dmW
.
dmPelsWidth
,
dmW
.
dmPelsHeight
,
dmW
.
dmBitsPerPel
,
dmW
.
dmDisplayFrequency
);
ChangeDisplaySettingsExW
(
NULL
,
&
dmW
,
0
,
CDS_GLOBAL
|
CDS_NORESET
|
CDS_UPDATEREGISTRY
,
NULL
);
}
}
/* main desktop management function */
...
...
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