space: apply transform for output_geometry
This commit is contained in:
parent
64c535464a
commit
359c060e0f
|
@ -215,11 +215,16 @@ impl Space {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let transform: Transform = o.current_transform().into();
|
||||||
let state = output_state(self.id, o);
|
let state = output_state(self.id, o);
|
||||||
o.current_mode().map(|mode| {
|
o.current_mode().map(|mode| {
|
||||||
Rectangle::from_loc_and_size(
|
Rectangle::from_loc_and_size(
|
||||||
state.location,
|
state.location,
|
||||||
mode.size.to_f64().to_logical(state.render_scale).to_i32_round(),
|
transform
|
||||||
|
.transform_size(mode.size)
|
||||||
|
.to_f64()
|
||||||
|
.to_logical(state.render_scale)
|
||||||
|
.to_i32_round(),
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue