mtk: Move Rectangle.equal from Meta
Moves equal the equal function and removes the clutter equivalent. The tests were not moved until all the remaining helper functions are moved. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3128>
This commit is contained in:
@ -925,7 +925,7 @@ ensure_logical_monitor (GList **logical_monitor_configs,
|
||||
{
|
||||
MetaLogicalMonitorConfig *logical_monitor_config = l->data;
|
||||
|
||||
if (meta_rectangle_equal (&logical_monitor_config->layout, layout))
|
||||
if (mtk_rectangle_equal (&logical_monitor_config->layout, layout))
|
||||
return logical_monitor_config;
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,7 @@ logical_monitor_from_layout (MetaMonitorManager *manager,
|
||||
{
|
||||
MetaLogicalMonitor *logical_monitor = l->data;
|
||||
|
||||
if (meta_rectangle_equal (layout, &logical_monitor->rect))
|
||||
if (mtk_rectangle_equal (layout, &logical_monitor->rect))
|
||||
return logical_monitor;
|
||||
}
|
||||
|
||||
@ -326,7 +326,7 @@ derive_scale_from_config (MetaMonitorManager *manager,
|
||||
{
|
||||
MetaLogicalMonitorConfig *logical_monitor_config = l->data;
|
||||
|
||||
if (meta_rectangle_equal (layout, &logical_monitor_config->layout))
|
||||
if (mtk_rectangle_equal (layout, &logical_monitor_config->layout))
|
||||
return logical_monitor_config->scale;
|
||||
}
|
||||
|
||||
|
@ -56,8 +56,8 @@ update_monitor (MetaScreenCastMonitorStream *monitor_stream,
|
||||
if (!new_logical_monitor)
|
||||
return FALSE;
|
||||
|
||||
if (!meta_rectangle_equal (&new_logical_monitor->rect,
|
||||
&monitor_stream->logical_monitor->rect))
|
||||
if (!mtk_rectangle_equal (&new_logical_monitor->rect,
|
||||
&monitor_stream->logical_monitor->rect))
|
||||
return FALSE;
|
||||
|
||||
g_set_object (&monitor_stream->monitor, new_monitor);
|
||||
|
@ -215,7 +215,7 @@ meta_kms_crtc_state_changes (MetaKmsCrtcState *state,
|
||||
if (state->is_active != other_state->is_active)
|
||||
return META_KMS_RESOURCE_CHANGE_FULL;
|
||||
|
||||
if (!meta_rectangle_equal (&state->rect, &other_state->rect))
|
||||
if (!mtk_rectangle_equal (&state->rect, &other_state->rect))
|
||||
return META_KMS_RESOURCE_CHANGE_FULL;
|
||||
|
||||
if (state->is_drm_mode_valid != other_state->is_drm_mode_valid)
|
||||
|
Reference in New Issue
Block a user