Commit 71f9e4ac authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

monitor-tiled: fix tile coordinate calculation

Based on mutter commit:
mutter@21b8ae10
parent 78136677
...@@ -565,20 +565,20 @@ calculate_tile_coordinate (GfMonitor *monitor, ...@@ -565,20 +565,20 @@ calculate_tile_coordinate (GfMonitor *monitor,
case GF_MONITOR_TRANSFORM_270: case GF_MONITOR_TRANSFORM_270:
case GF_MONITOR_TRANSFORM_FLIPPED_270: case GF_MONITOR_TRANSFORM_FLIPPED_270:
if (other_output->tile_info.loc_v_tile == output->tile_info.loc_v_tile && 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; y += other_output->tile_info.tile_w;
if (other_output->tile_info.loc_h_tile == output->tile_info.loc_h_tile && 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; x += other_output->tile_info.tile_h;
break; break;
case GF_MONITOR_TRANSFORM_90: case GF_MONITOR_TRANSFORM_90:
case GF_MONITOR_TRANSFORM_FLIPPED_90: case GF_MONITOR_TRANSFORM_FLIPPED_90:
if (other_output->tile_info.loc_v_tile == output->tile_info.loc_v_tile && 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; y += other_output->tile_info.tile_w;
if (other_output->tile_info.loc_h_tile == output->tile_info.loc_h_tile && 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; x += other_output->tile_info.tile_h;
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment