LayerComposer: correct formatting of rect calculation
This commit is contained in:
parent
87b918375d
commit
975b0d12b2
1 changed files with 3 additions and 6 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue