Commit 0f1d8329 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Force update display cache after NtUserChangeDisplaySettingsEx.

parent 8a9c34ed
......@@ -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 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment