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
ba143493
Commit
ba143493
authored
Sep 27, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Oct 12, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Send WM_DISPLAYCHANGE message to the desktop window.
And pass it down to the drivers DesktopWindowProc entry.
parent
c70b34e3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
desktop.c
dlls/user32/desktop.c
+1
-0
defwnd.c
dlls/win32u/defwnd.c
+2
-1
sysparams.c
dlls/win32u/sysparams.c
+2
-0
No files found.
dlls/user32/desktop.c
View file @
ba143493
...
@@ -83,6 +83,7 @@ LRESULT WINAPI DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lP
...
@@ -83,6 +83,7 @@ LRESULT WINAPI DesktopWndProc( HWND hwnd, UINT message, WPARAM wParam, LPARAM lP
case
WM_NCCREATE
:
case
WM_NCCREATE
:
case
WM_NCCALCSIZE
:
case
WM_NCCALCSIZE
:
case
WM_PARENTNOTIFY
:
case
WM_PARENTNOTIFY
:
case
WM_DISPLAYCHANGE
:
return
NtUserMessageCall
(
hwnd
,
message
,
wParam
,
lParam
,
0
,
NtUserDesktopWindowProc
,
FALSE
);
return
NtUserMessageCall
(
hwnd
,
message
,
wParam
,
lParam
,
0
,
NtUserDesktopWindowProc
,
FALSE
);
default:
default:
...
...
dlls/win32u/defwnd.c
View file @
ba143493
...
@@ -2953,7 +2953,8 @@ LRESULT desktop_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
...
@@ -2953,7 +2953,8 @@ LRESULT desktop_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
}
}
case
WM_NCCALCSIZE
:
case
WM_NCCALCSIZE
:
return
0
;
return
0
;
case
WM_DISPLAYCHANGE
:
return
user_driver
->
pDesktopWindowProc
(
hwnd
,
msg
,
wparam
,
lparam
);
default:
default:
if
(
msg
>=
WM_USER
&&
hwnd
==
get_desktop_window
())
if
(
msg
>=
WM_USER
&&
hwnd
==
get_desktop_window
())
return
user_driver
->
pDesktopWindowProc
(
hwnd
,
msg
,
wparam
,
lparam
);
return
user_driver
->
pDesktopWindowProc
(
hwnd
,
msg
,
wparam
,
lparam
);
...
...
dlls/win32u/sysparams.c
View file @
ba143493
...
@@ -2487,6 +2487,8 @@ static LONG apply_display_settings( const WCHAR *devname, const DEVMODEW *devmod
...
@@ -2487,6 +2487,8 @@ static LONG apply_display_settings( const WCHAR *devname, const DEVMODEW *devmod
user_driver
->
pGetCurrentDisplaySettings
(
adapter
->
dev
.
device_name
,
&
current_mode
);
user_driver
->
pGetCurrentDisplaySettings
(
adapter
->
dev
.
device_name
,
&
current_mode
);
adapter_release
(
adapter
);
adapter_release
(
adapter
);
send_message
(
NtUserGetDesktopWindow
(),
WM_DISPLAYCHANGE
,
current_mode
.
dmBitsPerPel
,
MAKELPARAM
(
current_mode
.
dmPelsWidth
,
current_mode
.
dmPelsHeight
)
);
send_message_timeout
(
HWND_BROADCAST
,
WM_DISPLAYCHANGE
,
current_mode
.
dmBitsPerPel
,
send_message_timeout
(
HWND_BROADCAST
,
WM_DISPLAYCHANGE
,
current_mode
.
dmBitsPerPel
,
MAKELPARAM
(
current_mode
.
dmPelsWidth
,
current_mode
.
dmPelsHeight
),
MAKELPARAM
(
current_mode
.
dmPelsWidth
,
current_mode
.
dmPelsHeight
),
SMTO_ABORTIFHUNG
,
2000
,
FALSE
);
SMTO_ABORTIFHUNG
,
2000
,
FALSE
);
...
...
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