[gnome-flashback/gnome-3-36] monitor-tiled: fix tile coordinate calculation



commit 886981ad52b1d2e69b4bff38060dc315703b525e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Apr 29 15:16:51 2020 +0300

    monitor-tiled: fix tile coordinate calculation
    
    Based on mutter commit:
    https://gitlab.gnome.org/GNOME/mutter/-/commit/21b8ae10b8d0ee0ba724

 backends/gf-monitor-tiled.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/backends/gf-monitor-tiled.c b/backends/gf-monitor-tiled.c
index 67041fa..6398283 100644
--- a/backends/gf-monitor-tiled.c
+++ b/backends/gf-monitor-tiled.c
@@ -565,20 +565,20 @@ calculate_tile_coordinate (GfMonitor          *monitor,
           case GF_MONITOR_TRANSFORM_270:
           case GF_MONITOR_TRANSFORM_FLIPPED_270:
             if (other_output->tile_info.loc_v_tile == output->tile_info.loc_v_tile &&
-                other_output->tile_info.loc_h_tile < output->tile_info.loc_h_tile)
+                other_output->tile_info.loc_h_tile > output->tile_info.loc_h_tile)
               y += other_output->tile_info.tile_w;
             if (other_output->tile_info.loc_h_tile == output->tile_info.loc_h_tile &&
-                other_output->tile_info.loc_v_tile < output->tile_info.loc_v_tile)
+                other_output->tile_info.loc_v_tile > output->tile_info.loc_v_tile)
               x += other_output->tile_info.tile_h;
             break;
 
           case GF_MONITOR_TRANSFORM_90:
           case GF_MONITOR_TRANSFORM_FLIPPED_90:
             if (other_output->tile_info.loc_v_tile == output->tile_info.loc_v_tile &&
-                other_output->tile_info.loc_h_tile > output->tile_info.loc_h_tile)
+                other_output->tile_info.loc_h_tile < output->tile_info.loc_h_tile)
               y += other_output->tile_info.tile_w;
             if (other_output->tile_info.loc_h_tile == output->tile_info.loc_h_tile &&
-                other_output->tile_info.loc_v_tile > output->tile_info.loc_v_tile)
+                other_output->tile_info.loc_v_tile < output->tile_info.loc_v_tile)
               x += other_output->tile_info.tile_h;
             break;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]