winex11.drv: Constify set_current_mode DEVMODEW parameter.

This commit is contained in:
Rémi Bernon 2022-07-29 14:02:42 +02:00 committed by Alexandre Julliard
parent 395273d6e1
commit d7457fd32e
5 changed files with 6 additions and 6 deletions

View file

@ -218,7 +218,7 @@ static BOOL X11DRV_desktop_get_current_mode( ULONG_PTR id, DEVMODEW *mode )
return TRUE;
}
static LONG X11DRV_desktop_set_current_mode( ULONG_PTR id, DEVMODEW *mode )
static LONG X11DRV_desktop_set_current_mode( ULONG_PTR id, const DEVMODEW *mode )
{
if (mode->dmFields & DM_BITSPERPEL && mode->dmBitsPerPel != screen_bpp)
WARN("Cannot change screen color depth from %dbits to %dbits!\n", screen_bpp, mode->dmBitsPerPel);

View file

@ -144,7 +144,7 @@ static BOOL nores_get_current_mode(ULONG_PTR id, DEVMODEW *mode)
return TRUE;
}
static LONG nores_set_current_mode(ULONG_PTR id, DEVMODEW *mode)
static LONG nores_set_current_mode(ULONG_PTR id, const DEVMODEW *mode)
{
WARN("NoRes settings handler, ignoring mode change request.\n");
return DISP_CHANGE_SUCCESSFUL;

View file

@ -741,7 +741,7 @@ struct x11drv_settings_handler
* mode must be a valid mode from get_modes() with optional fields, such as dmPosition set.
*
* Return DISP_CHANGE_*, same as ChangeDisplaySettingsExW() return values */
LONG (*set_current_mode)(ULONG_PTR id, DEVMODEW *mode);
LONG (*set_current_mode)(ULONG_PTR id, const DEVMODEW *mode);
};
extern void X11DRV_Settings_SetHandler(const struct x11drv_settings_handler *handler) DECLSPEC_HIDDEN;

View file

@ -282,7 +282,7 @@ static BOOL xrandr10_get_current_mode( ULONG_PTR id, DEVMODEW *mode )
return TRUE;
}
static LONG xrandr10_set_current_mode( ULONG_PTR id, DEVMODEW *mode )
static LONG xrandr10_set_current_mode( ULONG_PTR id, const DEVMODEW *mode )
{
XRRScreenConfiguration *screen_config;
Rotation rotation;
@ -1544,7 +1544,7 @@ done:
return ret;
}
static LONG xrandr14_set_current_mode( ULONG_PTR id, DEVMODEW *mode )
static LONG xrandr14_set_current_mode( ULONG_PTR id, const DEVMODEW *mode )
{
unsigned int screen_width, screen_height;
RROutput output = (RROutput)id, *outputs;

View file

@ -215,7 +215,7 @@ static BOOL xf86vm_get_current_mode(ULONG_PTR id, DEVMODEW *mode)
return TRUE;
}
static LONG xf86vm_set_current_mode(ULONG_PTR id, DEVMODEW *mode)
static LONG xf86vm_set_current_mode(ULONG_PTR id, const DEVMODEW *mode)
{
XF86VidModeModeInfo *xf86vm_mode;
Bool ret;