renderer-view: Drop bogus meta_monitor_transform_invert()

It papered over wrong `meta_rectangle_transform()` behaviour for
non-flipped output transforms. Also there is no obvious reason
why we would need inverted values here.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2459>
This commit is contained in:
Robert Mader 2022-06-14 18:42:13 +02:00 committed by Marge Bot
parent 0c34908132
commit 0c12903352

View File

@ -136,12 +136,9 @@ meta_renderer_view_transform_rect_to_onscreen (ClutterStageView *view
cairo_rectangle_int_t *dst_rect) cairo_rectangle_int_t *dst_rect)
{ {
MetaRendererView *renderer_view = META_RENDERER_VIEW (view); MetaRendererView *renderer_view = META_RENDERER_VIEW (view);
MetaMonitorTransform inverted_transform;
inverted_transform =
meta_monitor_transform_invert (renderer_view->transform);
return meta_rectangle_transform (src_rect, return meta_rectangle_transform (src_rect,
inverted_transform, renderer_view->transform,
dst_width, dst_width,
dst_height, dst_height,
dst_rect); dst_rect);