mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-21 11:34:12 +00:00
winex11.drv: Constify set_current_mode DEVMODEW parameter.
This commit is contained in:
parent
395273d6e1
commit
d7457fd32e
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue