mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 10:23:37 +00:00
win32u: Force update display cache after NtUserChangeDisplaySettingsEx.
This commit is contained in:
parent
8a9c34edb5
commit
0f1d8329f0
|
@ -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)};
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue