mirror of
https://github.com/brl/mutter.git
synced 2025-07-16 23:27:18 +00:00
monitor: Move logical <-> CRTC transform helpers to MetaOutput
So that we avoid leaking the internal guts of MetaOutput into MetaMonitor, while also making it possible to use it without a MetaMonitor at hand. https://gitlab.gnome.org/GNOME/mutter/merge_requests/1064
This commit is contained in:
@ -73,6 +73,18 @@ meta_output_logical_to_crtc_transform (MetaOutput *output,
|
||||
panel_orientation_transform);
|
||||
}
|
||||
|
||||
MetaMonitorTransform
|
||||
meta_output_crtc_to_logical_transform (MetaOutput *output,
|
||||
MetaMonitorTransform transform)
|
||||
{
|
||||
MetaMonitorTransform inverted_panel_orientation_transform;
|
||||
|
||||
inverted_panel_orientation_transform =
|
||||
meta_monitor_transform_invert (output->panel_orientation_transform);
|
||||
return meta_monitor_transform_transform (transform,
|
||||
inverted_panel_orientation_transform);
|
||||
}
|
||||
|
||||
static void
|
||||
meta_output_dispose (GObject *object)
|
||||
{
|
||||
|
Reference in New Issue
Block a user