mirror of
https://github.com/brl/mutter.git
synced 2025-08-03 07:04:41 +00:00
monitor: Move logical to CRTC transform helper to MetaOutput
So that it can be used on a per output basis in the future. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1042
This commit is contained in:
@@ -62,6 +62,20 @@ meta_output_get_assigned_crtc (MetaOutput *output)
|
||||
return priv->crtc;
|
||||
}
|
||||
|
||||
MetaMonitorTransform
|
||||
meta_output_logical_to_crtc_transform (MetaOutput *output,
|
||||
MetaMonitorTransform transform)
|
||||
{
|
||||
MetaMonitorTransform new_transform;
|
||||
|
||||
new_transform = (transform + output->panel_orientation_transform) %
|
||||
META_MONITOR_TRANSFORM_FLIPPED;
|
||||
if (meta_monitor_transform_is_flipped (transform))
|
||||
new_transform += META_MONITOR_TRANSFORM_FLIPPED;
|
||||
|
||||
return new_transform;
|
||||
}
|
||||
|
||||
static void
|
||||
meta_output_dispose (GObject *object)
|
||||
{
|
||||
|
Reference in New Issue
Block a user