提交 975b0d12 编写于 作者: S Simon Fels

LayerComposer: correct formatting of rect calculation

上级 87b91837
......@@ -73,13 +73,10 @@ void LayerComposer::submit_layers(const RenderableList &renderables) {
// need to recalculate all layer coordinates into relatives ones to the
// window they are drawn into.
auto rect = Rect{
r.screen_position().left() - new_window_frame.left() +
r.crop().left(),
r.screen_position().left() - new_window_frame.left() + r.crop().left(),
r.screen_position().top() - new_window_frame.top() + r.crop().top(),
r.screen_position().right() - new_window_frame.left() +
r.crop().left(),
r.screen_position().bottom() - new_window_frame.top() +
r.crop().top()};
r.screen_position().right() - new_window_frame.left() + r.crop().left(),
r.screen_position().bottom() - new_window_frame.top() + r.crop().top()};
auto new_renderable = r;
new_renderable.set_screen_position(rect);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册