input-settings: Make set_matrix() vfunc take const float array pointer
It shouldn't alter it, or take ownership, so clarify that by making it constant. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1806>
This commit is contained in:
parent
e956078052
commit
efde781747
4 changed files with 4 additions and 4 deletions
|
@ -35,7 +35,7 @@ meta_input_settings_dummy_set_send_events (MetaInputSettings *settings,
|
|||
static void
|
||||
meta_input_settings_dummy_set_matrix (MetaInputSettings *settings,
|
||||
ClutterInputDevice *device,
|
||||
gfloat matrix[6])
|
||||
const float matrix[6])
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -81,7 +81,7 @@ struct _MetaInputSettingsClass
|
|||
GDesktopDeviceSendEvents mode);
|
||||
void (* set_matrix) (MetaInputSettings *settings,
|
||||
ClutterInputDevice *device,
|
||||
gfloat matrix[6]);
|
||||
const float matrix[6]);
|
||||
void (* set_speed) (MetaInputSettings *settings,
|
||||
ClutterInputDevice *device,
|
||||
gdouble speed);
|
||||
|
|
|
@ -147,7 +147,7 @@ set_matrix (GTask *task)
|
|||
static void
|
||||
meta_input_settings_native_set_matrix (MetaInputSettings *settings,
|
||||
ClutterInputDevice *device,
|
||||
gfloat matrix[6])
|
||||
const float matrix[6])
|
||||
{
|
||||
MetaInputSettingsNative *input_settings_native;
|
||||
cairo_matrix_t *dev_matrix;
|
||||
|
|
|
@ -203,7 +203,7 @@ meta_input_settings_x11_set_send_events (MetaInputSettings *settings,
|
|||
static void
|
||||
meta_input_settings_x11_set_matrix (MetaInputSettings *settings,
|
||||
ClutterInputDevice *device,
|
||||
gfloat matrix[6])
|
||||
const float matrix[6])
|
||||
{
|
||||
MetaBackend *backend = meta_get_backend ();
|
||||
Display *xdisplay = meta_backend_x11_get_xdisplay (META_BACKEND_X11 (backend));
|
||||
|
|
Loading…
Reference in a new issue