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
0f1d8329
Commit
0f1d8329
authored
Sep 27, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Nov 01, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Force update display cache after NtUserChangeDisplaySettingsEx.
parent
8a9c34ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
sysparams.c
dlls/win32u/sysparams.c
+3
-0
display.c
dlls/winemac.drv/display.c
+1
-3
display.c
dlls/winex11.drv/display.c
+0
-2
No files found.
dlls/win32u/sysparams.c
View file @
0f1d8329
...
...
@@ -2443,6 +2443,9 @@ static LONG apply_display_settings( const WCHAR *devname, const DEVMODEW *devmod
free
(
displays
);
if
(
ret
)
return
ret
;
if
(
!
update_display_cache
(
TRUE
))
WARN
(
"Failed to update display cache after mode change.
\n
"
);
if
((
adapter
=
find_adapter
(
NULL
)))
{
DEVMODEW
current_mode
=
{.
dmSize
=
sizeof
(
DEVMODEW
)};
...
...
dlls/winemac.drv/display.c
View file @
0f1d8329
...
...
@@ -830,9 +830,7 @@ LONG macdrv_ChangeDisplaySettings(LPDEVMODEW displays, HWND hwnd, DWORD flags, L
bpp
,
mode
->
dmDisplayFrequency
);
ret
=
DISP_CHANGE_BADMODE
;
}
else
if
(
macdrv_set_display_mode
(
&
macdrv_displays
[
0
],
best_display_mode
))
macdrv_init_display_devices
(
TRUE
);
else
else
if
(
!
macdrv_set_display_mode
(
&
macdrv_displays
[
0
],
best_display_mode
))
{
WARN
(
"Failed to set display mode
\n
"
);
ret
=
DISP_CHANGE_FAILED
;
...
...
dlls/winex11.drv/display.c
View file @
0f1d8329
...
...
@@ -418,8 +418,6 @@ LONG X11DRV_ChangeDisplaySettings( LPDEVMODEW displays, HWND hwnd, DWORD flags,
ret
=
apply_display_settings
(
displays
,
ids
,
FALSE
);
if
(
ret
==
DISP_CHANGE_SUCCESSFUL
)
ret
=
apply_display_settings
(
displays
,
ids
,
TRUE
);
if
(
ret
==
DISP_CHANGE_SUCCESSFUL
)
X11DRV_DisplayDevices_Init
(
TRUE
);
done:
free
(
ids
);
...
...
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