monitor: Assign monitor layout directly by crtc rect
There's no need to repeat what gcc can do alone. https://gitlab.gnome.org/GNOME/mutter/merge_requests/469
This commit is contained in:
parent
02812fb988
commit
91aee3d5c4
@ -589,12 +589,7 @@ meta_monitor_normal_derive_layout (MetaMonitor *monitor,
|
||||
|
||||
output = meta_monitor_get_main_output (monitor);
|
||||
crtc = meta_output_get_assigned_crtc (output);
|
||||
*layout = (MetaRectangle) {
|
||||
.x = crtc->rect.x,
|
||||
.y = crtc->rect.y,
|
||||
.width = crtc->rect.width,
|
||||
.height = crtc->rect.height
|
||||
};
|
||||
*layout = crtc->rect;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
Loading…
Reference in New Issue
Block a user