winex11.drv: Adjust the priority of NoRes display settings handler to 1.

A display settings handler with a priority of 0 can not be properly registered due to how
X11DRV_Settings_SetHandler() is implemented. Fix a regression introduced by 9c99d9bceb.

Spotted by Torge Matthies.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50135
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zhiyi Zhang 2020-11-16 15:17:02 +08:00 committed by Alexandre Julliard
parent 990fc66274
commit c4a15755de
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ void X11DRV_Settings_Init(void)
depths = screen_bpp == 32 ? depths_32 : depths_24;
nores_handler.name = "NoRes";
nores_handler.priority = 0;
nores_handler.priority = 1;
nores_handler.get_id = nores_get_id;
nores_handler.get_modes = nores_get_modes;
nores_handler.free_modes = nores_free_modes;