mirror of
https://github.com/brl/mutter.git
synced 2025-02-16 13:24:09 +00:00
monitor-manager-kms: Fix a crash getting a crtc-less output's scale
https://bugzilla.gnome.org/show_bug.cgi?id=745476
This commit is contained in:
parent
db9645fcb3
commit
9c6e6ea381
@ -280,6 +280,9 @@ compute_scale (MetaOutput *output)
|
||||
{
|
||||
int scale = 1;
|
||||
|
||||
if (!output->crtc)
|
||||
goto out;
|
||||
|
||||
/* Scaling makes no sense */
|
||||
if (output->crtc->rect.width < HIDPI_MIN_HEIGHT)
|
||||
goto out;
|
||||
|
Loading…
x
Reference in New Issue
Block a user