diff --git a/src/backends/meta-monitor-transform.h b/src/backends/meta-monitor-transform.h index e5757e869..c49e29e81 100644 --- a/src/backends/meta-monitor-transform.h +++ b/src/backends/meta-monitor-transform.h @@ -52,6 +52,7 @@ meta_monitor_transform_is_flipped (MetaMonitorTransform transform) return (transform >= META_MONITOR_TRANSFORM_FLIPPED); } +META_EXPORT_TEST MetaMonitorTransform meta_monitor_transform_invert (MetaMonitorTransform transform); META_EXPORT_TEST diff --git a/src/tests/monitor-transform-tests.c b/src/tests/monitor-transform-tests.c index fb505d00c..871a06b10 100644 --- a/src/tests/monitor-transform-tests.c +++ b/src/tests/monitor-transform-tests.c @@ -62,22 +62,23 @@ test_transform (void) }, { .transform = META_MONITOR_TRANSFORM_NORMAL, - .other = META_MONITOR_TRANSFORM_270, + .other = meta_monitor_transform_invert (META_MONITOR_TRANSFORM_90), .expect = META_MONITOR_TRANSFORM_270, }, { .transform = META_MONITOR_TRANSFORM_FLIPPED, - .other = META_MONITOR_TRANSFORM_270, + .other = meta_monitor_transform_invert (META_MONITOR_TRANSFORM_90), .expect = META_MONITOR_TRANSFORM_FLIPPED_270, }, { .transform = META_MONITOR_TRANSFORM_FLIPPED_180, - .other = META_MONITOR_TRANSFORM_90, + .other = meta_monitor_transform_invert (META_MONITOR_TRANSFORM_270), .expect = META_MONITOR_TRANSFORM_FLIPPED_270, }, { .transform = META_MONITOR_TRANSFORM_FLIPPED_180, - .other = META_MONITOR_TRANSFORM_FLIPPED_180, + .other = + meta_monitor_transform_invert (META_MONITOR_TRANSFORM_FLIPPED_180), .expect = META_MONITOR_TRANSFORM_NORMAL, }, };