summaryrefslogtreecommitdiff
path: root/src/backends/native
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/native')
-rw-r--r--src/backends/native/meta-renderer-native.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/backends/native/meta-renderer-native.c b/src/backends/native/meta-renderer-native.c
index 59003b397..250a6b6c1 100644
--- a/src/backends/native/meta-renderer-native.c
+++ b/src/backends/native/meta-renderer-native.c
@@ -2731,9 +2731,14 @@ calculate_view_transform (MetaMonitorManager *monitor_manager,
MetaMonitor *main_monitor;
MetaOutput *main_output;
MetaCrtc *crtc;
+ MetaMonitorTransform crtc_transform;
+
main_monitor = meta_logical_monitor_get_monitors (logical_monitor)->data;
main_output = meta_monitor_get_main_output (main_monitor);
crtc = meta_output_get_assigned_crtc (main_output);
+ crtc_transform =
+ meta_monitor_logical_to_crtc_transform (main_monitor,
+ logical_monitor->transform);
/*
* Pick any monitor and output and check; all CRTCs of a logical monitor will
@@ -2742,10 +2747,10 @@ calculate_view_transform (MetaMonitorManager *monitor_manager,
if (meta_monitor_manager_is_transform_handled (monitor_manager,
crtc,
- crtc->transform))
+ crtc_transform))
return META_MONITOR_TRANSFORM_NORMAL;
else
- return crtc->transform;
+ return crtc_transform;
}
static MetaRendererView *